summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-10-26 15:53:51 (GMT)
committerJeff King <peff@peff.net>2012-10-29 07:08:30 (GMT)
commitefc7df454e9ec8b730fb2293c8549cec43de6bfa (patch)
treebc96070114a2ca5820523944880f635910155d46 /commit.h
parentc43cb38612192fa45bf7ed981a98bc4ddb86ce75 (diff)
downloadgit-efc7df454e9ec8b730fb2293c8549cec43de6bfa.zip
git-efc7df454e9ec8b730fb2293c8549cec43de6bfa.tar.gz
git-efc7df454e9ec8b730fb2293c8549cec43de6bfa.tar.bz2
Move print_commit_list to libgit.a
This is used by bisect.c, part of libgit.a while it stays in builtin/rev-list.c. Move it to commit.c so that we won't get undefined reference if a program that uses libgit.a happens to pull it in. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index 9f21313..c4cd046 100644
--- a/commit.h
+++ b/commit.h
@@ -222,4 +222,8 @@ struct commit *get_merge_parent(const char *name);
extern int parse_signed_commit(const unsigned char *sha1,
struct strbuf *message, struct strbuf *signature);
+extern void print_commit_list(struct commit_list *list,
+ const char *format_cur,
+ const char *format_last);
+
#endif /* COMMIT_H */