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.
This commit is contained in:
Linus Torvalds
2005-06-01 08:34:23 -07:00
parent ef6a46e6ea
commit e3bc7a3bc7
3 changed files with 86 additions and 69 deletions

View File

@ -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.
**/