X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-add.c;h=7083820f7b2745708e40f624935a0ad231351e24;hb=c7e3a75121877ecc8ea60c2d3873a1c6c504ed68;hp=089c7a89b324ee3cfd64aec9fe2cfba4314d2f3b;hpb=f25933987f29070e9cd79dfddf03018010e82e80;p=git.git diff --git a/builtin-add.c b/builtin-add.c index 089c7a89b..7083820f7 100644 --- a/builtin-add.c +++ b/builtin-add.c @@ -8,6 +8,7 @@ #include "cache.h" #include "builtin.h" #include "dir.h" +#include "cache-tree.h" static const char builtin_add_usage[] = "git-add [-n] [-v] ..."; @@ -197,6 +198,7 @@ static int add_file_to_index(const char *path, int verbose) die("unable to add %s to index",path); if (verbose) printf("add '%s'\n", path); + cache_tree_invalidate_path(active_cache_tree, path); return 0; }