summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-12-05 20:02:54 +0700
committerJunio C Hamano <gitster@pobox.com>2013-12-10 16:14:19 -0800
commiteab3296c7e5c99f559818357e70eeae09c24ac99 (patch)
treee8ded7e86858b5a28315e8b4d7687235f0e5e2d7 /commit.h
parent0d7d285f0e29abb994fe32db87ee81b00f403bd2 (diff)
downloadgit-eab3296c7e5c99f559818357e70eeae09c24ac99.tar.gz
prune: clean .git/shallow after pruning objects
This patch teaches "prune" to remove shallow roots that are no longer reachable from any refs (e.g. when the relevant refs are removed). Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index a1f2d49433..affe210337 100644
--- a/commit.h
+++ b/commit.h
@@ -235,6 +235,7 @@ extern void assign_shallow_commits_to_refs(struct shallow_info *info,
uint32_t **used,
int *ref_status);
extern int delayed_reachability_test(struct shallow_info *si, int c);
+extern void prune_shallow(int show_only);
int is_descendant_of(struct commit *, struct commit_list *);
int in_merge_bases(struct commit *, struct commit *);