diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2016-09-05 20:08:07 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-07 12:59:43 -0700 |
commit | 151b2911c1279f3ea4b5bcc069a04348aeb9d811 (patch) | |
tree | 85f195244e3e81f7be62a0bcf78a6fb1b7781040 /cache.h | |
parent | 71445a0fef6a539dc283e57d19740fe5445e9b86 (diff) | |
download | git-151b2911c1279f3ea4b5bcc069a04348aeb9d811.tar.gz git-151b2911c1279f3ea4b5bcc069a04348aeb9d811.tar.xz |
sha1_name: convert get_sha1_mb to struct object_id
All of the callers of this function use struct object_id, so rename it
to get_oid_mb and make it take struct object_id instead of
unsigned char *.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1204,7 +1204,7 @@ extern char *sha1_to_hex(const unsigned char *sha1); /* static buffer result! */ extern char *oid_to_hex(const struct object_id *oid); /* same static buffer as sha1_to_hex */ extern int interpret_branch_name(const char *str, int len, struct strbuf *); -extern int get_sha1_mb(const char *str, unsigned char *sha1); +extern int get_oid_mb(const char *str, struct object_id *oid); extern int validate_headref(const char *ref); |