summaryrefslogtreecommitdiff
path: root/revision.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-01-14 22:49:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-01-15 19:05:47 (GMT)
commit0131c4909674b35f870916f875e6404e3ba58bc9 (patch)
tree8c9ba912389d6b662cbb33523b832c0f0302fe2e /revision.h
parent2b102efc8cd60730f044917d3aa68b3dd54d82d0 (diff)
downloadgit-0131c4909674b35f870916f875e6404e3ba58bc9.zip
git-0131c4909674b35f870916f875e6404e3ba58bc9.tar.gz
git-0131c4909674b35f870916f875e6404e3ba58bc9.tar.bz2
revision.c: make save_parents() and free_saved_parents() static
No external callers exist. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.h')
-rw-r--r--revision.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/revision.h b/revision.h
index 033a244..07807e5 100644
--- a/revision.h
+++ b/revision.h
@@ -298,18 +298,14 @@ extern int rewrite_parents(struct rev_info *revs, struct commit *commit,
rewrite_parent_fn_t rewrite_parent);
/*
- * Save a copy of the parent list, and return the saved copy. This is
- * used by the log machinery to retrieve the original parents when
- * commit->parents has been modified by history simpification.
- *
- * You may only call save_parents() once per commit (this is checked
- * for non-root commits).
+ * The log machinery saves the original parent list so that
+ * get_saved_parents() can later tell what the real parents of the
+ * commits are, when commit->parents has been modified by history
+ * simpification.
*
* get_saved_parents() will transparently return commit->parents if
* history simplification is off.
*/
-extern void save_parents(struct rev_info *revs, struct commit *commit);
extern struct commit_list *get_saved_parents(struct rev_info *revs, const struct commit *commit);
-extern void free_saved_parents(struct rev_info *revs);
#endif