]> git.ipfire.org Git - thirdparty/git.git/commit - branch.c
ref_transaction_update(): remove "have_old" parameter
authorMichael Haggerty <mhagger@alum.mit.edu>
Tue, 17 Feb 2015 17:00:15 +0000 (18:00 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Feb 2015 19:22:50 +0000 (11:22 -0800)
commit1d147bdff0b8132d3aa53a46df8dbab7b673b796
treebc10a34c8136b89c3e646bb9eb1d6ea840f9376b
parent8df4e51138781927962438819d79ae3221b527b5
ref_transaction_update(): remove "have_old" parameter

Instead, verify the reference's old value if and only if old_sha1 is
non-NULL.

ref_transaction_delete() will get the same treatment in a moment.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
12 files changed:
branch.c
builtin/commit.c
builtin/fetch.c
builtin/receive-pack.c
builtin/replace.c
builtin/tag.c
builtin/update-ref.c
fast-import.c
refs.c
refs.h
sequencer.c
walker.c