Skip to content

rebase-i: Ignore comments and blank lines among squash/fixup commands

Michael Haggerty git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 2 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3lib-rebase: Provide clearer debugging info about what the editor didt/lib-rebase.sh+3 -21 reply
2/3lib-rebase: Allow comments and blank lines to be added to the rebase scriptt/lib-rebase.sh+16 -50 replies
3/3rebase-i: Ignore comments and blank lines in peek_next_commandgit-rebase--interactive.sh t/t3404-rebase-interactive.sh+25 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/3] rebase-i: Ignore comments and blank lines among squash/fixup commands

Here is v2 of the patch (now patch series) for making "rebase -i" ignore comments and blank lines while it is processing blocks of squash/fixup commands.

Please note that this version applies to "next", not "master", because it depends on some changes to t/t3404-rebase-interactive.sh that were made in mh/rebase-fixup. (This dependency is superficial and could be removed if necessary.)

The first patch in this series is not essential to the functionality but I found it useful when debugging the tests.

Michael Haggerty (3):
lib-rebase: Provide clearer debugging info about what the editor did
lib-rebase: Allow comments and blank lines to be added to the rebase
script
rebase-i: Ignore comments and blank lines in peek_next_command

 git-rebase--interactive.sh    |    2 +-
 t/lib-rebase.sh               |   26 +++++++++++++++++++-------
 t/t3404-rebase-interactive.sh |   24 ++++++++++++++++++++++++
 3 files changed, 44 insertions(+), 8 deletions(-)