Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nguyễn Thái Ngọc Duy authored and Junio C Hamano committed Jun 13, 2014
1 parent e636a7b commit 782a5ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builtin/update-index.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 782a5ff

Please sign in to comment.