path: root/write-tree.c
diff options
authorLinus Torvalds <>2005-04-10 18:32:54 (GMT)
committerLinus Torvalds <>2005-04-10 18:32:54 (GMT)
commit121481abf8d752ef871821d4ab9a3747595d86ae (patch)
tree6722a6e40e1edeeec7cd4c527a16a51553074130 /write-tree.c
parentd6d3f9d0125a7215f3cdc2600b2307ca55b69536 (diff)
Make "update-cache" a bit friendlier to use (and harder to mis-use).
It now requires the "--add" flag before you add any new files, and a "--remove" file if you want to mark files for removal. And giving it the "--refresh" flag makes it just update all the files that it already knows about.
Diffstat (limited to 'write-tree.c')
1 files changed, 0 insertions, 2 deletions
diff --git a/write-tree.c b/write-tree.c
index f6358d7..7eac1df 100644
--- a/write-tree.c
+++ b/write-tree.c
@@ -63,8 +63,6 @@ static int write_tree(struct cache_entry **cachep, int maxentries, const char *b
int subdir_written;
subdir_written = write_tree(cachep + nr, maxentries - nr, pathname, dirname-pathname+1, subdir_sha1);
- fprintf(stderr, "Wrote %d entries from subdirectory '%.*s'\n",
- subdir_written, dirname-pathname, pathname);
nr += subdir_written;
/* Now we need to write out the directory entry into this tree.. */