summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar brian m. carlson <sandals@crustytoothpaste.net>2018-05-02 00:25:34 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-05-02 13:59:49 +0900
commit6862ebbfcbdd44b68dbdcfecd432432bdf22b2e5 (patch)
treeea08f350eebbbb00a2e500fcfe7985ebc6785add /builtin
parentpackfile: convert has_sha1_pack to object_id (diff)
downloadtgif-6862ebbfcbdd44b68dbdcfecd432432bdf22b2e5.tar.xz
sha1-file: convert freshen functions to object_id
Convert the various functions for freshening objects and has_loose_object_nonlocal to use struct object_id. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/pack-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index 4bdae5a1d8..907e112331 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -1012,7 +1012,7 @@ static int want_object_in_pack(const struct object_id *oid,
int want;
struct list_head *pos;
- if (!exclude && local && has_loose_object_nonlocal(oid->hash))
+ if (!exclude && local && has_loose_object_nonlocal(oid))
return 0;
/*