summaryrefslogtreecommitdiff
path: root/builtin-mv.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-10-02 05:22:07 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-10-02 06:32:39 (GMT)
commit4fddf5798d8a0eb112c60a05272a2d9407eafc8f (patch)
treee42a21f3137d606e7c466bf16e8e78ef4403451b /builtin-mv.c
parent82ca50556471eadfc3212cb478161c3da5c4d02a (diff)
downloadgit-4fddf5798d8a0eb112c60a05272a2d9407eafc8f.zip
git-4fddf5798d8a0eb112c60a05272a2d9407eafc8f.tar.gz
git-4fddf5798d8a0eb112c60a05272a2d9407eafc8f.tar.bz2
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 ff882be..6b0ab8a 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) {