diff options
author | Stefan Beller <sbeller@google.com> | 2017-07-13 00:44:14 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-07-13 19:02:40 (GMT) |
commit | 8b65a34c4a12cdaae7f43f65f760da0f48ad67e3 (patch) | |
tree | 1afb7e225af08f8196b05cfc8ed23c901c33f472 /commit.h | |
parent | 80145b1e412719c960036c8c62a9e35dd23a5b2d (diff) | |
download | git-8b65a34c4a12cdaae7f43f65f760da0f48ad67e3.zip git-8b65a34c4a12cdaae7f43f65f760da0f48ad67e3.tar.gz git-8b65a34c4a12cdaae7f43f65f760da0f48ad67e3.tar.bz2 |
commit: convert lookup_commit_graft to struct object_id
With this patch, commit.h doesn't contain the string 'sha1' any more.
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r-- | commit.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -249,7 +249,7 @@ typedef int (*each_commit_graft_fn)(const struct commit_graft *, void *); struct commit_graft *read_graft_line(char *buf, int len); int register_commit_graft(struct commit_graft *, int); -struct commit_graft *lookup_commit_graft(const unsigned char *sha1); +struct commit_graft *lookup_commit_graft(const struct object_id *oid); extern struct commit_list *get_merge_bases(struct commit *rev1, struct commit *rev2); extern struct commit_list *get_merge_bases_many(struct commit *one, int n, struct commit **twos); |