From 961784ee422c22075e131292b2235782e378c612 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 18 May 2005 16:14:22 -0700 Subject: 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. --- commit.h | 1 + 1 file changed, 1 insertion(+) (limited to 'commit.h') diff --git a/commit.h b/commit.h index ce0b436711..620e936bbc 100644 --- a/commit.h +++ b/commit.h @@ -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); -- cgit v1.2.1