X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=commit.h;h=57c1b62faf2b0e4dffcfec45baa6bdf1ce883350;hb=2160a025d2a20202e323d33d879521d23e28b709;hp=51d95764ab121257ebba0050d54146f11188d2c2;hpb=a3437b8c26a63d971437c8b6ac6f6d4f632be548;p=git.git diff --git a/commit.h b/commit.h index 51d95764..57c1b62f 100644 --- a/commit.h +++ b/commit.h @@ -19,8 +19,8 @@ struct commit { extern const char *commit_type; -struct commit *lookup_commit(unsigned char *sha1); -struct commit *lookup_commit_reference(unsigned char *sha1); +struct commit *lookup_commit(const unsigned char *sha1); +struct commit *lookup_commit_reference(const unsigned char *sha1); int parse_commit_buffer(struct commit *item, void *buffer, unsigned long size);