commit: helper methods to reduce redundant blocks of code
[gitweb.git] / commit.h
index 9113bbe4889d71e824348edcb920110598db18d2..a0b710f843d81819a84dd7bb44f405d7d04ed89d 100644 (file)
--- a/commit.h
+++ b/commit.h
@@ -36,6 +36,7 @@ struct commit *lookup_commit(const unsigned char *sha1);
 struct commit *lookup_commit_reference(const unsigned char *sha1);
 struct commit *lookup_commit_reference_gently(const unsigned char *sha1,
                                              int quiet);
+struct commit *lookup_commit_reference_by_name(const char *name);
 
 int parse_commit_buffer(struct commit *item, void *buffer, unsigned long size);