summaryrefslogtreecommitdiff
path: root/refs/ref-cache.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2017-05-06 22:10:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-05-08 06:12:58 (GMT)
commit4417df8c492489613d031478ba2e3604f65a5f84 (patch)
treea75e1116e388fd9fb212a158e030932e544a91a9 /refs/ref-cache.h
parent984912989d6c4bc4c34bcf4296173ed96b22d272 (diff)
downloadgit-4417df8c492489613d031478ba2e3604f65a5f84.zip
git-4417df8c492489613d031478ba2e3604f65a5f84.tar.gz
git-4417df8c492489613d031478ba2e3604f65a5f84.tar.bz2
refs/files-backend: convert many internals to struct object_id
Convert many of the internals of the files backend to use struct object_id. Avoid converting public APIs (except one change to refs/ref-cache.c) to limit the scope of the changes. Convert one use of get_sha1_hex to parse_oid_hex, and rely on the fact that a strbuf will be NUL-terminated and that parse_oid_hex will fail on truncated input to avoid the need to check the length. This is a requirement to convert parse_object later on. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/ref-cache.h')
-rw-r--r--refs/ref-cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs/ref-cache.h b/refs/ref-cache.h
index ffdc54f..1f65e2f 100644
--- a/refs/ref-cache.h
+++ b/refs/ref-cache.h
@@ -185,7 +185,7 @@ struct ref_entry *create_dir_entry(struct ref_cache *cache,
int incomplete);
struct ref_entry *create_ref_entry(const char *refname,
- const unsigned char *sha1, int flag,
+ const struct object_id *oid, int flag,
int check_name);
/*