diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-09-09 14:30:29 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-09 14:30:29 -0700 |
commit | 2233ad4534db8a37b1bf726312d52d4a0a51db0a (patch) | |
tree | a13884a1de77eb61ef89f9b3f780553c6b2a3225 /Documentation/RelNotes/1.6.5.1.txt | |
parent | Merge branch 'nd/clone-connectivity-shortcut' (diff) | |
parent | push: teach --force-with-lease to smart-http transport (diff) | |
download | tgif-2233ad4534db8a37b1bf726312d52d4a0a51db0a.tar.xz |
Merge branch 'jc/push-cas'
Allow a safer "rewind of the remote tip" push than blind "--force",
by requiring that the overwritten remote ref to be unchanged since
the new history to replace it was prepared.
The machinery is more or less ready. The "--force" option is again
the big red button to override any safety, thanks to J6t's sanity
(the original round allowed --lockref to defeat --force).
The logic to choose the default implemented here is fragile
(e.g. "git fetch" after seeing a failure will update the
remote-tracking branch and will make the next "push" pass,
defeating the safety pretty easily). It is suitable only for the
simplest workflows, and it may hurt users more than it helps them.
* jc/push-cas:
push: teach --force-with-lease to smart-http transport
send-pack: fix parsing of --force-with-lease option
t5540/5541: smart-http does not support "--force-with-lease"
t5533: test "push --force-with-lease"
push --force-with-lease: tie it all together
push --force-with-lease: implement logic to populate old_sha1_expect[]
remote.c: add command line option parser for "--force-with-lease"
builtin/push.c: use OPT_BOOL, not OPT_BOOLEAN
cache.h: move remote/connect API out of it
Diffstat (limited to 'Documentation/RelNotes/1.6.5.1.txt')
0 files changed, 0 insertions, 0 deletions