aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2016-09-05 20:08:07 +0000
committerJunio C Hamano <gitster@pobox.com>2016-09-07 12:59:43 -0700
commit151b2911c1279f3ea4b5bcc069a04348aeb9d811 (patch)
tree85f195244e3e81f7be62a0bcf78a6fb1b7781040 /cache.h
parent71445a0fef6a539dc283e57d19740fe5445e9b86 (diff)
downloadgit-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index a679484e8..e40165d10 100644
--- a/cache.h
+++ b/cache.h
@@ -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);