Re: [PATCH] rebase: mention --abort alongside --continue
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 19, 2026, 01:36 UTC
- Message-ID
- <xmqqa4srnwfa.fsf@gitster.g>
- In-Reply-To
- <CAHwyqnV8je6gCTExr=CFCdYskN1dVaEDVSKDLUo5A4Ukv=qhiA@mail.gmail.com>
Harald Nordgren <haraldnordgren@gmail.com> writes:
Show 25 quoted lines
> Just an example when working on a different topic: > > I rebased with -x to run all the tests, but ran a test that didn't > exist yet on the first commit and ended up in a bad state. Here it > should clearly show the 'git rebase --abort', so I can start over, > it's not something to fix: > > ``` > $ git rebase --keep-base -x 'make -s' -x 'cd t && prove -j8 > t3454-history-squash.sh t3453-history-fixup.sh t3452-history-split.sh > t3451-history-reword.sh t3450-history.sh' > Executing: make -s > GIT_VERSION=2.55.0.rc1.20.g1e31474ef6 > Executing: cd t && prove -j8 t3454-history-squash.sh > t3453-history-fixup.sh t3452-history-split.sh t3451-history-reword.sh > t3450-history.sh > Cannot detect source of 't3454-history-squash.sh'! at > /System/Library/Perl/5.34/TAP/Parser/IteratorFactory.pm line 256. > ... > warning: execution failed: cd t && prove -j8 t3454-history-squash.sh > t3453-history-fixup.sh t3452-history-split.sh t3451-history-reword.sh > t3450-history.sh > You can fix the problem, and then run > > git rebase --continue
Hmph, you do not have to "fix" as you know some of the test scripts did not exist at this stage. So the solution to the issue seems to be just to say "git rebase --continue", instead of starting over by aborting. It is especially true if the test scripts are introduced in the middle of this rebase session somewhere later in the series, no?
Of course if you gave a totally broken script to "-x" option, you'd need to be able to abort it, but is that the use case we should be giving one extra line of output for users in all other situations? I dunno.