Merge branch 'jc/dirwalk-n-cache-tree' into next
* jc/dirwalk-n-cache-tree: Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
commit
7f2d5cb531
@ -117,6 +117,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);
|
||||
cache_tree_invalidate_path(active_cache_tree, path);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -801,7 +801,7 @@ static void prime_cache_tree_rec(struct cache_tree *it, struct tree *tree)
|
||||
{
|
||||
struct tree_entry_list *ent;
|
||||
int cnt;
|
||||
|
||||
|
||||
memcpy(it->sha1, tree->object.sha1, 20);
|
||||
for (cnt = 0, ent = tree->entries; ent; ent = ent->next) {
|
||||
if (!ent->directory)
|
||||
|
Loading…
Reference in New Issue
Block a user