diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2017-03-26 16:01:37 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-28 09:59:34 -0700 |
commit | ee3051bd2307cdc0145aa9ed9dcacb8acfc08c40 (patch) | |
tree | 34c83024d11dbd1de894fc8d1e92a9714b30c463 /fsck.c | |
parent | builtin/pull: convert to struct object_id (diff) | |
download | tgif-ee3051bd2307cdc0145aa9ed9dcacb8acfc08c40.tar.xz |
sha1-array: convert internal storage for struct sha1_array to object_id
Make the internal storage for struct sha1_array use an array of struct
object_id internally. Update the users of this struct which inspect its
internals.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fsck.c')
-rw-r--r-- | fsck.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -158,8 +158,8 @@ static void init_skiplist(struct fsck_options *options, const char *path) die("Invalid SHA-1: %s", buffer); sha1_array_append(&skiplist, oid.hash); if (sorted && skiplist.nr > 1 && - hashcmp(skiplist.sha1[skiplist.nr - 2], - oid.hash) > 0) + oidcmp(&skiplist.oid[skiplist.nr - 2], + &oid) > 0) sorted = 0; } close(fd); |