summaryrefslogtreecommitdiff
path: root/builtin-mv.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-10-01 22:22:07 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-10-01 23:32:39 -0700
commit4fddf5798d8a0eb112c60a05272a2d9407eafc8f (patch)
treee42a21f3137d606e7c466bf16e8e78ef4403451b /builtin-mv.c
parentgit-diff -B output fix. (diff)
downloadtgif-4fddf5798d8a0eb112c60a05272a2d9407eafc8f.tar.xz
git-mv: invalidate the removed path properly in cache-tree
The command updated the cache without invalidating the cache tree entries while removing an existing entry. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-mv.c')
-rw-r--r--builtin-mv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-mv.c b/builtin-mv.c
index ff882bec47..6b0ab8aa9f 100644
--- a/builtin-mv.c
+++ b/builtin-mv.c
@@ -278,6 +278,7 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
for (i = 0; i < deleted.nr; i++) {
const char *path = deleted.items[i].path;
remove_file_from_cache(path);
+ cache_tree_invalidate_path(active_cache_tree, path);
}
if (active_cache_changed) {