Commit f7d42ce
rebase -i: do leave commit message intact in fixup! chains
In 6e98de7 (sequencer (rebase -i): add support for the 'fixup' and
'squash' commands, 2017-01-02), this developer introduced a change of
behavior by mistake: when encountering a `fixup!` commit (or multiple
`fixup!` commits) without any `squash!` commit thrown in, the final `git
commit` was invoked with `--cleanup=strip`. Prior to that commit, the
commit command had been called without that `--cleanup` option.
Since we explicitly read the original commit message from a file in that
case, there is really no sense in forcing that clean-up.
We actually need to actively suppress that clean-up lest a configured
`commit.cleanup` may interfere with what we want to do: leave the commit
message unchanged.
Reported-by: Vojtěch Knyttl <vojtech@knyt.tl>
Helped-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 71ca53e commit f7d42ce
2 files changed
+20
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
943 | 943 | | |
944 | 944 | | |
945 | 945 | | |
| 946 | + | |
946 | 947 | | |
947 | 948 | | |
948 | 949 | | |
| |||
979 | 980 | | |
980 | 981 | | |
981 | 982 | | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
982 | 986 | | |
983 | 987 | | |
984 | 988 | | |
| |||
1012 | 1016 | | |
1013 | 1017 | | |
1014 | 1018 | | |
| 1019 | + | |
| 1020 | + | |
1015 | 1021 | | |
1016 | 1022 | | |
1017 | 1023 | | |
| |||
1380 | 1386 | | |
1381 | 1387 | | |
1382 | 1388 | | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
1383 | 1392 | | |
1384 | 1393 | | |
1385 | 1394 | | |
| |||
1454 | 1463 | | |
1455 | 1464 | | |
1456 | 1465 | | |
| 1466 | + | |
| 1467 | + | |
1457 | 1468 | | |
1458 | 1469 | | |
1459 | 1470 | | |
| |||
2002 | 2013 | | |
2003 | 2014 | | |
2004 | 2015 | | |
2005 | | - | |
| 2016 | + | |
2006 | 2017 | | |
2007 | 2018 | | |
2008 | 2019 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
443 | 451 | | |
0 commit comments