commit: add "lookup_commit_reference()" helper function

It's pretty much the same as "lookup_commit()", but it will take
tags too, and look up the commit (if any) associated with them.
This commit is contained in:
Linus Torvalds
2005-05-18 16:14:22 -07:00
parent fbab835c03
commit 961784ee42
2 changed files with 24 additions and 6 deletions

View File

@ -19,6 +19,7 @@ struct commit {
extern const char *commit_type;
struct commit *lookup_commit(unsigned char *sha1);
struct commit *lookup_commit_reference(unsigned char *sha1);
int parse_commit_buffer(struct commit *item, void *buffer, unsigned long size);