summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2008-06-27 16:21:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-07-01 05:45:50 (GMT)
commit653194758ee338b7c87d011007c532ed5cf68d45 (patch)
tree4cdb427cd0ac9833f6df95e504375e70f6c9eb7d /commit.h
parent0989fe9623dc8d98033f6acdcc0c84ec28571b19 (diff)
downloadgit-653194758ee338b7c87d011007c532ed5cf68d45.zip
git-653194758ee338b7c87d011007c532ed5cf68d45.tar.gz
git-653194758ee338b7c87d011007c532ed5cf68d45.tar.bz2
Move commit_list_count() to commit.c
This function is useful outside builtin-merge-recursive, for example in builtin-merge. Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> 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 2d94d41..7f8c5ee 100644
--- a/commit.h
+++ b/commit.h
@@ -41,6 +41,7 @@ int parse_commit_buffer(struct commit *item, void *buffer, unsigned long size);
int parse_commit(struct commit *item);
struct commit_list * commit_list_insert(struct commit *item, struct commit_list **list_p);
+unsigned commit_list_count(const struct commit_list *l);
struct commit_list * insert_by_date(struct commit *item, struct commit_list **list);
void free_commit_list(struct commit_list *list);