From ba84a797e76c27932e0b317c7ce54925e81093f7 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 6 Jul 2006 10:16:22 -0700 Subject: builtin "git prune" This actually removes the objects to be pruned, unless you specify "-n" (at which point it will just tell you which files it would prune). This doesn't do the pack-file pruning that the shell-script used to do, but if somebody really wants to, they could add it easily enough. I wonder how useful it is, though, considering that "git repack -a -d" is just a lot more efficient and generates a better end result. Signed-off-by: Linus Torvalds Signed-off-by: Junio C Hamano --- builtin.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'builtin.h') diff --git a/builtin.h b/builtin.h index d9e5483bd..5339d8627 100644 --- a/builtin.h +++ b/builtin.h @@ -25,6 +25,8 @@ extern int cmd_diff(int argc, const char **argv, char **envp); extern int cmd_format_patch(int argc, const char **argv, char **envp); extern int cmd_count_objects(int argc, const char **argv, char **envp); +extern int cmd_prune(int argc, const char **argv, char **envp); + extern int cmd_push(int argc, const char **argv, char **envp); extern int cmd_grep(int argc, const char **argv, char **envp); extern int cmd_rm(int argc, const char **argv, char **envp); -- cgit v1.2.1