summaryrefslogtreecommitdiffstats
path: root/refs/refs-internal.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2017-10-16 00:07:10 +0200
committerJunio C Hamano <gitster@pobox.com>2017-10-16 04:05:52 +0200
commitac2ed0d7d51e5c0b402797ecf01f38e9bfc82e0e (patch)
tree7fcbdf85704b9d0d14fa41eae0154377282f8e5d /refs/refs-internal.h
parentrefs: convert resolve_ref_unsafe to struct object_id (diff)
downloadgit-ac2ed0d7d51e5c0b402797ecf01f38e9bfc82e0e.tar.xz
git-ac2ed0d7d51e5c0b402797ecf01f38e9bfc82e0e.zip
refs: convert peel_object to struct object_id
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r--refs/refs-internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/refs/refs-internal.h b/refs/refs-internal.h
index 3c4781eb87..54059c1daf 100644
--- a/refs/refs-internal.h
+++ b/refs/refs-internal.h
@@ -120,11 +120,11 @@ enum peel_status {
/*
* Peel the named object; i.e., if the object is a tag, resolve the
* tag recursively until a non-tag is found. If successful, store the
- * result to sha1 and return PEEL_PEELED. If the object is not a tag
+ * result to oid and return PEEL_PEELED. If the object is not a tag
* or is not valid, return PEEL_NON_TAG or PEEL_INVALID, respectively,
* and leave sha1 unchanged.
*/
-enum peel_status peel_object(const unsigned char *name, unsigned char *sha1);
+enum peel_status peel_object(const struct object_id *name, struct object_id *oid);
/*
* Copy the reflog message msg to buf, which has been allocated sufficiently