From e3bc7a3bc7b77f44d686003f5a9346a135529f73 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 1 Jun 2005 08:34:23 -0700 Subject: Add generic commit "pretty print" function. It's really just the header printign function from diff-tree.c, and it's usable for other things too. --- commit.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'commit.h') diff --git a/commit.h b/commit.h index edfdc12cf6..8147551c9e 100644 --- a/commit.h +++ b/commit.h @@ -32,6 +32,9 @@ void free_commit_list(struct commit_list *list); void sort_by_date(struct commit_list **list); +extern unsigned long pretty_print_commit(const char *msg, unsigned long len, char *buf, unsigned long space); + + /** Removes the first commit from a list sorted by date, and adds all * of its parents. **/ -- cgit v1.2.1