Skip to content

Commit 6c306a3

Browse files
pcloudsgitster
authored andcommitted
resolve-undo: be specific what part of the index has changed
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 782a5ff commit 6c306a3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cache.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ static inline unsigned int canon_mode(unsigned int mode)
272272
#define CE_ENTRY_CHANGED (1 << 1)
273273
#define CE_ENTRY_REMOVED (1 << 2)
274274
#define CE_ENTRY_ADDED (1 << 3)
275+
#define RESOLVE_UNDO_CHANGED (1 << 4)
275276

276277
struct index_state {
277278
struct cache_entry **cache;

resolve-undo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void resolve_undo_clear_index(struct index_state *istate)
110110
string_list_clear(resolve_undo, 1);
111111
free(resolve_undo);
112112
istate->resolve_undo = NULL;
113-
istate->cache_changed = SOMETHING_CHANGED;
113+
istate->cache_changed |= RESOLVE_UNDO_CHANGED;
114114
}
115115

116116
int unmerge_index_entry_at(struct index_state *istate, int pos)

0 commit comments

Comments
 (0)