diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2017-10-16 01:06:50 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-16 05:05:50 +0300 |
commit | 2616a5e5089814188a583572bd9bf578b18a2a40 (patch) | |
tree | e332a31b1f6f6262a1c0bdd36cfe7e46b2459a7f /refs | |
parent | 49e9958869670d829edd63a54dabc46496a3cb48 (diff) |
refs: convert delete_ref and refs_delete_ref to struct object_id
Convert delete_ref and refs_delete_ref to take a pointer to struct
object_id. Update the documentation accordingly, including referring to
null_oid in lowercase, as it is not a #define constant.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c index 9db9237f1e3..9c4766aa574 100644 --- a/refs/files-backend.c +++ b/refs/files-backend.c @@ -1283,7 +1283,7 @@ static int files_copy_or_rename_ref(struct ref_store *ref_store, } if (!copy && refs_delete_ref(&refs->base, logmsg, oldrefname, - orig_oid.hash, REF_NODEREF)) { + &orig_oid, REF_NODEREF)) { error("unable to delete old %s", oldrefname); goto rollback; } |