diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2016-06-24 23:09:22 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-28 11:39:02 -0700 |
commit | c368dde9245fa3d50b7e01e1ff4f9e5c12c718da (patch) | |
tree | a403a930011d189beac26ce291d9413032df2337 /refs | |
parent | f449198e58630b8b57c94e3eeab4927afd7ee03a (diff) | |
download | git-c368dde9245fa3d50b7e01e1ff4f9e5c12c718da.tar.gz git-c368dde9245fa3d50b7e01e1ff4f9e5c12c718da.tar.xz |
coccinelle: apply object_id Coccinelle transformations
Apply the set of semantic patches from contrib/coccinelle to convert
some leftover places using struct object_id's hash member to instead
use the wrapper functions that take struct object_id natively.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs')
-rw-r--r-- | refs/files-backend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c index 1f3807641..dac3a2229 100644 --- a/refs/files-backend.c +++ b/refs/files-backend.c @@ -1725,14 +1725,14 @@ static int verify_lock(struct ref_lock *lock, errno = save_errno; return -1; } else { - hashclr(lock->old_oid.hash); + oidclr(&lock->old_oid); return 0; } } if (old_sha1 && hashcmp(lock->old_oid.hash, old_sha1)) { strbuf_addf(err, "ref %s is at %s but expected %s", lock->ref_name, - sha1_to_hex(lock->old_oid.hash), + oid_to_hex(&lock->old_oid), sha1_to_hex(old_sha1)); errno = EBUSY; return -1; |