summaryrefslogtreecommitdiff
path: root/builtin/update-index.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-06-13 12:19:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-13 18:49:38 (GMT)
commit782a5ff9cec21b6a4f1f09c80d646b27fb100559 (patch)
tree919be792299d7181aed48fc1b87f46d980264585 /builtin/update-index.c
parente636a7b4d0304608fe063ffcbbaf99e46f23dbea (diff)
downloadgit-782a5ff9cec21b6a4f1f09c80d646b27fb100559.zip
git-782a5ff9cec21b6a4f1f09c80d646b27fb100559.tar.gz
git-782a5ff9cec21b6a4f1f09c80d646b27fb100559.tar.bz2
update-index: 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>
Diffstat (limited to 'builtin/update-index.c')
-rw-r--r--builtin/update-index.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/update-index.c b/builtin/update-index.c
index d2654d6..e0e881b 100644
--- a/builtin/update-index.c
+++ b/builtin/update-index.c
@@ -56,7 +56,7 @@ static int mark_ce_flags(const char *path, int flag, int mark)
else
active_cache[pos]->ce_flags &= ~flag;
cache_tree_invalidate_path(active_cache_tree, path);
- active_cache_changed = SOMETHING_CHANGED;
+ active_cache_changed |= CE_ENTRY_CHANGED;
return 0;
}
return -1;
@@ -268,7 +268,7 @@ static void chmod_path(int flip, const char *path)
goto fail;
}
cache_tree_invalidate_path(active_cache_tree, path);
- active_cache_changed = SOMETHING_CHANGED;
+ active_cache_changed |= CE_ENTRY_CHANGED;
report("chmod %cx '%s'", flip, path);
return;
fail:
@@ -889,7 +889,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
INDEX_FORMAT_LB, INDEX_FORMAT_UB);
if (the_index.version != preferred_index_format)
- active_cache_changed = SOMETHING_CHANGED;
+ active_cache_changed |= SOMETHING_CHANGED;
the_index.version = preferred_index_format;
}