]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jt/rebase-allow-duplicate'
authorJunio C Hamano <gitster@pobox.com>
Wed, 22 Apr 2020 20:43:00 +0000 (13:43 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Apr 2020 20:43:00 +0000 (13:43 -0700)
Allow "git rebase" to reapply all local commits, even if the may be
already in the upstream, without checking first.

* jt/rebase-allow-duplicate:
  rebase --merge: optionally skip upstreamed commits

1  2 
Documentation/git-rebase.txt
builtin/rebase.c
sequencer.c
sequencer.h

Simple merge
index b62b450f8c865ed5b73bf33c149c7e612cb6e2c3,75c2ebd4c3596cd0885300ab54132d47f97cfa2a..c466923869d6fdd211347125986e26c82e1d0153
@@@ -1829,8 -1829,13 +1833,11 @@@ int cmd_rebase(int argc, const char **a
        if (options.empty != EMPTY_UNSPECIFIED)
                imply_merge(&options, "--empty");
  
 -      if (gpg_sign) {
 -              free(options.gpg_sign_opt);
+       if (options.reapply_cherry_picks)
+               imply_merge(&options, "--reapply-cherry-picks");
 +      if (gpg_sign)
                options.gpg_sign_opt = xstrfmt("-S%s", gpg_sign);
 -      }
  
        if (exec.nr) {
                int i;
diff --cc sequencer.c
Simple merge
diff --cc sequencer.h
Simple merge