summaryrefslogtreecommitdiff
path: root/bundle.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2017-05-01 02:28:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-05-02 01:46:41 (GMT)
commitb8607f35b180a00b3f3240ff7d26d034a83fb23a (patch)
treed3a675540509817138c652f49ce8855c6b696627 /bundle.h
parentaf6730e7303d3025a8f50192e0f54acc74142484 (diff)
downloadgit-b8607f35b180a00b3f3240ff7d26d034a83fb23a.zip
git-b8607f35b180a00b3f3240ff7d26d034a83fb23a.tar.gz
git-b8607f35b180a00b3f3240ff7d26d034a83fb23a.tar.bz2
bundle: convert to struct object_id
Convert the bundle code, plus the sole external user of struct ref_list_entry, to use struct object_id. Include cache.h from within bundle.h to provide the definition. Convert some of the hash parsing code to use parse_oid_hex to avoid needing to hard-code constant values. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bundle.h')
-rw-r--r--bundle.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundle.h b/bundle.h
index 1584e4d..e9a4cb6 100644
--- a/bundle.h
+++ b/bundle.h
@@ -1,10 +1,12 @@
#ifndef BUNDLE_H
#define BUNDLE_H
+#include "cache.h"
+
struct ref_list {
unsigned int nr, alloc;
struct ref_list_entry {
- unsigned char sha1[20];
+ struct object_id oid;
char *name;
} *list;
};