diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2018-05-02 00:25:34 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-02 13:59:49 +0900 |
commit | 6862ebbfcbdd44b68dbdcfecd432432bdf22b2e5 (patch) | |
tree | ea08f350eebbbb00a2e500fcfe7985ebc6785add /builtin | |
parent | packfile: convert has_sha1_pack to object_id (diff) | |
download | tgif-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.c | 2 |
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; /* |