projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make "update-cache" a bit friendlier to use (and harder to mis-use).
[git.git]
/
read-tree.c
diff --git
a/read-tree.c
b/read-tree.c
index
6862d10
..
5784802
100644
(file)
--- a/
read-tree.c
+++ b/
read-tree.c
@@
-18,7
+18,7
@@
static int read_one_entry(unsigned char *sha1, const char *base, int baselen, co
memcpy(ce->name, base, baselen);
memcpy(ce->name + baselen, pathname, len+1);
memcpy(ce->sha1, sha1, 20);
- return add_cache_entry(ce);
+ return add_cache_entry(ce
, 1
);
}
static int read_tree(unsigned char *sha1, const char *base, int baselen)