diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2017-05-07 00:10:11 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-08 08:12:57 +0200 |
commit | e6a492b7beca9dc8b656f2be3aec23fc1a35e4de (patch) | |
tree | 15196180251faf3c1416aa460172872c194ab08d /pack.h | |
parent | Convert lookup_commit* to struct object_id (diff) | |
download | git-e6a492b7beca9dc8b656f2be3aec23fc1a35e4de.tar.xz git-e6a492b7beca9dc8b656f2be3aec23fc1a35e4de.zip |
pack: convert struct pack_idx_entry to struct object_id
Convert struct pack_idx_entry to use struct object_id by changing the
definition and applying the following semantic patch, plus the standard
object_id transforms:
@@
struct pack_idx_entry E1;
@@
- E1.sha1
+ E1.oid.hash
@@
struct pack_idx_entry *E1;
@@
- E1->sha1
+ E1->oid.hash
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | pack.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -67,7 +67,7 @@ struct pack_idx_header { * Common part of object structure used for write_idx_file */ struct pack_idx_entry { - unsigned char sha1[20]; + struct object_id oid; uint32_t crc32; off_t offset; }; |