summaryrefslogtreecommitdiff
path: root/builtin-prune.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-05-30 15:54:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-05-31 21:49:29 (GMT)
commit54352bb2742cfbe53fa820eab53607a46d349ae4 (patch)
tree46cc41aa3259172b9314ad0ca81e5e7e837d1808 /builtin-prune.c
parent4c81b03e30d13dbc93ea7071438ef2da0acd4189 (diff)
downloadgit-54352bb2742cfbe53fa820eab53607a46d349ae4.zip
git-54352bb2742cfbe53fa820eab53607a46d349ae4.tar.gz
git-54352bb2742cfbe53fa820eab53607a46d349ae4.tar.bz2
Remove now unnecessary 'sync()' calls
Since the pack-files are now always created stably on disk, there is no need to sync() before pruning lose objects or old stale pack-files. [jc: with Nico's clean-up] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-prune.c')
-rw-r--r--builtin-prune.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin-prune.c b/builtin-prune.c
index 25f9304..bd3d2f6 100644
--- a/builtin-prune.c
+++ b/builtin-prune.c
@@ -156,7 +156,6 @@ int cmd_prune(int argc, const char **argv, const char *prefix)
mark_reachable_objects(&revs, 1);
prune_object_dir(get_object_directory());
- sync();
prune_packed_objects(show_only);
remove_temporary_files();
return 0;