diff options
author | Patrick Steinhardt <ps@pks.im> | 2015-11-20 13:04:40 +0100 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2015-11-24 18:47:42 -0500 |
commit | 7753adf31881c710ee93ddcbabc3aa07e4fdbd7b (patch) | |
tree | c35cdf835c9c060e02625fce2307cab33f73e69b /diff-no-index.c | |
parent | a6ddec04f5ef0b1dd3b7abd417d10a428b523d31 (diff) | |
download | git-ps/rebase-keep-empty.tar.gz |
rebase: fix preserving commits with --keep-emptyps/rebase-keep-empty
When rebasing commits where one or several commits are redundant
to commits on the branch that is being rebased upon we error out.
This is due to the usage of `--allow-empty` for the invoked
cherry-pick command, which will only cause _empty_ commits to be
picked instead of also allowing redundant commits. As
git-rebase(1) mentions, though, we also want to keep commits that
do not change anything from its parents, that is also redundant
commits.
Fix this by invoking `git cherry-pick --keep-redundant-commits`
instead, which will cause redundant commits to be rebased
correctly.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'diff-no-index.c')
0 files changed, 0 insertions, 0 deletions