]> git.ipfire.org Git - thirdparty/git.git/commit - transport.c
push --force-with-lease: tie it all together
authorJunio C Hamano <gitster@pobox.com>
Mon, 8 Jul 2013 21:42:40 +0000 (14:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Jul 2013 05:33:21 +0000 (22:33 -0700)
commit631b5ef219c41027c144218e25075062b91f9471
treebe26e0d749b7c4826c9e7874f70432de504b33c4
parent91048a9537a4716c84934e4f8ed114a20606d3ff
push --force-with-lease: tie it all together

This teaches the deepest part of the callchain for "git push" (and
"git send-pack") to enforce "the old value of the ref must be this,
otherwise fail this push" (aka "compare-and-swap" / "--lockref").

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/send-pack.c
remote.c
remote.h
send-pack.c
transport-helper.c
transport.c