summaryrefslogtreecommitdiff
path: root/write-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-04-27 16:21:54 -0700
committerJunio C Hamano <junkio@cox.net>2006-04-27 16:21:54 -0700
commit2956dd3bd7bd512aa8fce7e55d5eec1e56df99ab (patch)
treef3f43e014fa8a1c0ee5829eec216e85b831f15a3 /write-tree.c
parent7927a55d5bde25702dca4fb1a7d6eb7ef61110ba (diff)
downloadgit-2956dd3bd7bd512aa8fce7e55d5eec1e56df99ab.tar.gz
cache_tree_update: give an option to update cache-tree only.
When the extra "dryrun" parameter is true, cache_tree_update() recomputes the invalid entry but does not actually creates new tree object. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'write-tree.c')
-rw-r--r--write-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/write-tree.c b/write-tree.c
index a5069921a0..7a4f691d8a 100644
--- a/write-tree.c
+++ b/write-tree.c
@@ -41,7 +41,7 @@ int main(int argc, char **argv)
if (!was_valid) {
if (cache_tree_update(active_cache_tree,
active_cache, active_nr,
- missing_ok) < 0)
+ missing_ok, 0) < 0)
die("git-write-tree: error building trees");
if (0 <= newfd) {
if (!write_cache(newfd, active_cache, active_nr))