projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'vb/sendemail'
[git.git]
/
builtin-rm.c
diff --git
a/builtin-rm.c
b/builtin-rm.c
index
9014c61
..
e7793a2
100644
(file)
--- a/
builtin-rm.c
+++ b/
builtin-rm.c
@@
-6,6
+6,7
@@
#include "cache.h"
#include "builtin.h"
#include "dir.h"
#include "cache.h"
#include "builtin.h"
#include "dir.h"
+#include "cache-tree.h"
static const char builtin_rm_usage[] =
"git-rm [-n] [-v] [-f] <filepattern>...";
static const char builtin_rm_usage[] =
"git-rm [-n] [-v] [-f] <filepattern>...";
@@
-117,6
+118,7
@@
int cmd_rm(int argc, const char **argv, char **envp)
if (remove_file_from_cache(path))
die("git rm: unable to remove %s", path);
if (remove_file_from_cache(path))
die("git rm: unable to remove %s", path);
+ cache_tree_invalidate_path(active_cache_tree, path);
}
/*
}
/*