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>
This commit is contained in:
parent
782a5ff9ce
commit
6c306a34ee
1
cache.h
1
cache.h
@ -272,6 +272,7 @@ static inline unsigned int canon_mode(unsigned int mode)
|
||||
#define CE_ENTRY_CHANGED (1 << 1)
|
||||
#define CE_ENTRY_REMOVED (1 << 2)
|
||||
#define CE_ENTRY_ADDED (1 << 3)
|
||||
#define RESOLVE_UNDO_CHANGED (1 << 4)
|
||||
|
||||
struct index_state {
|
||||
struct cache_entry **cache;
|
||||
|
@ -110,7 +110,7 @@ void resolve_undo_clear_index(struct index_state *istate)
|
||||
string_list_clear(resolve_undo, 1);
|
||||
free(resolve_undo);
|
||||
istate->resolve_undo = NULL;
|
||||
istate->cache_changed = SOMETHING_CHANGED;
|
||||
istate->cache_changed |= RESOLVE_UNDO_CHANGED;
|
||||
}
|
||||
|
||||
int unmerge_index_entry_at(struct index_state *istate, int pos)
|
||||
|
Loading…
Reference in New Issue
Block a user