]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'sk/force-if-includes'
authorJunio C Hamano <gitster@pobox.com>
Tue, 27 Oct 2020 22:09:49 +0000 (15:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Oct 2020 22:09:49 +0000 (15:09 -0700)
"git push --force-with-lease[=<ref>]" can easily be misused to lose
commits unless the user takes good care of their own "git fetch".
A new option "--force-if-includes" attempts to ensure that what is
being force-pushed was created after examining the commit at the
tip of the remote ref that is about to be force-replaced.

* sk/force-if-includes:
  t, doc: update tests, reference for "--force-if-includes"
  push: parse and set flag for "--force-if-includes"
  push: add reflog check for "--force-if-includes"

1  2 
builtin/push.c
remote.c
remote.h
send-pack.c

diff --cc builtin/push.c
Simple merge
diff --cc remote.c
Simple merge
diff --cc remote.h
Simple merge
diff --cc send-pack.c
Simple merge