path: root/builtin.h
diff options
authorJ. Bruce Fields <>2006-10-22 23:01:23 (GMT)
committerJunio C Hamano <>2006-10-22 23:39:58 (GMT)
commit2eb53e65bd9cdd3b76a6447a1a51dee6e5de96a3 (patch)
tree5ed2049d3c68eeac2575f6e53edf4aa846047ee1 /builtin.h
parent474a90fef9ebcdedee041b2def4b9a98b94cd146 (diff)
Make prune also run prune-packed
Both the git-prune manpage and everday.txt say that git-prune should also prune unpacked objects that are also found in packs, by running git prune-packed. Junio thought this was "a regression when prune was rewritten as a built-in." So modify prune to call prune-packed again. Signed-off-by: J. Bruce Fields <>
Diffstat (limited to 'builtin.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin.h b/builtin.h
index f9fa9ff..f71b962 100644
--- a/builtin.h
+++ b/builtin.h
@@ -11,6 +11,7 @@ extern int mailinfo(FILE *in, FILE *out, int ks, const char *encoding, const cha
extern int split_mbox(const char **mbox, const char *dir, int allow_bare, int nr_prec, int skip);
extern void stripspace(FILE *in, FILE *out);
extern int write_tree(unsigned char *sha1, int missing_ok, const char *prefix);
+extern void prune_packed_objects(int);
extern int cmd_add(int argc, const char **argv, const char *prefix);
extern int cmd_apply(int argc, const char **argv, const char *prefix);