aboutsummaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-18 16:14:22 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-18 16:14:22 -0700
commit961784ee422c22075e131292b2235782e378c612 (patch)
treed79eca9b37e7ec984fb64b3f33bdc8d43f25c4be /commit.h
parentfbab835c03f1c73e4de920d00cd26519506d33fe (diff)
downloadgit-961784ee422c22075e131292b2235782e378c612.tar.gz
git-961784ee422c22075e131292b2235782e378c612.tar.xz
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.
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 ce0b43671..620e936bb 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);