]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'pw/rebase-keep-empty-fixes'
authorJunio C Hamano <gitster@pobox.com>
Wed, 25 Apr 2018 04:28:49 +0000 (13:28 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Apr 2018 04:28:49 +0000 (13:28 +0900)
"git rebase --keep-empty" still removed an empty commit if the
other side contained an empty commit (due to the "does an
equivalent patch exist already?" check), which has been corrected.

* pw/rebase-keep-empty-fixes:
  rebase: respect --no-keep-empty
  rebase -i --keep-empty: don't prune empty commits
  rebase --root: stop assuming squash_onto is unset

1  2 
git-rebase.sh
sequencer.c

diff --cc git-rebase.sh
index fb64ee1fe42e801a57f1709c15617ddbc27f05af,37b8f13971d424f9bf4b45b5f539f036388fcb30..548c15e4a16160e15a7f32cee8ace37284dbb850
@@@ -267,9 -263,9 +268,12 @@@ d
        --keep-empty)
                keep_empty=yes
                ;;
 +      --allow-empty-message)
 +              allow_empty_message=--allow-empty-message
 +              ;;
+       --no-keep-empty)
+               keep_empty=
+               ;;
        --preserve-merges)
                preserve_merges=t
                test -z "$interactive_rebase" && interactive_rebase=implied
diff --cc sequencer.c
Simple merge