summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-07-08 17:09:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-07-08 17:11:36 (GMT)
commit54307ea7c3ced760ee375483a786ec7180798aed (patch)
tree989d4ee64a7abae2833d07a3ab4eccc127eded92 /commit.h
parentdabd35f4cdd8bcfa502d082da5a3e4b927a2b329 (diff)
downloadgit-54307ea7c3ced760ee375483a786ec7180798aed.zip
git-54307ea7c3ced760ee375483a786ec7180798aed.tar.gz
git-54307ea7c3ced760ee375483a786ec7180798aed.tar.bz2
commit.c: remove print_commit_list()
The helper function tries to offer a way to conveniently show the last one differently from others, presumably to allow you to say something like A, B, and C. while iterating over a list that has these three elements. However, there is only one caller, and it passes the same format string "%s\n" for both the last one and the other ones. Retire the helper function and update the caller with a simplified version. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/commit.h b/commit.h
index 78ed513..71693ce 100644
--- a/commit.h
+++ b/commit.h
@@ -376,10 +376,6 @@ extern int parse_signed_commit(const struct commit *commit,
struct strbuf *message, struct strbuf *signature);
extern int remove_signature(struct strbuf *buf);
-extern void print_commit_list(struct commit_list *list,
- const char *format_cur,
- const char *format_last);
-
/*
* Check the signature of the given commit. The result of the check is stored
* in sig->check_result, 'G' for a good signature, 'U' for a good signature