summaryrefslogtreecommitdiff
path: root/revision.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-02-11 13:44:07 -0800
committerJunio C Hamano <gitster@pobox.com>2015-02-11 13:44:07 -0800
commitc985aaf87909ab7f8194b3cfed3a744cbff78fe9 (patch)
tree37416fd6c423c75204b505e7a71ca1812a3a1f29 /revision.h
parentcba07bb6ff58da5aa4538c4a2bbf70b717b172b3 (diff)
parent167832c2ca8e42572c0e8d329a78dbace2ecf2db (diff)
downloadgit-c985aaf87909ab7f8194b3cfed3a744cbff78fe9.tar.gz
Merge branch 'jc/unused-symbols'
Mark file-local symbols as "static", and drop functions that nobody uses. * jc/unused-symbols: shallow.c: make check_shallow_file_for_update() static remote.c: make clear_cas_option() static urlmatch.c: make match_urls() static revision.c: make save_parents() and free_saved_parents() static line-log.c: make line_log_data_init() static pack-bitmap.c: make pack_bitmap_filename() static prompt.c: remove git_getpass() nobody uses http.c: make finish_active_slot() and handle_curl_result() static
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 17ebafc4c7..0ea8b4e255 100644
--- a/revision.h
+++ b/revision.h
@@ -300,18 +300,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