rebase -i -p: add the 'topic' command
commit6e0350c7a31c6f5e680f459238fcce4e59b50e26
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 12 Feb 2009 02:12:45 +0000 (12 03:12 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 7 Feb 2010 21:56:16 +0000 (7 22:56 +0100)
tree60743a437348d97bb6bd20dab393ddd7ab7280e1
parent2c8db4350d39606b097affa4792a35014cb4e35f
rebase -i -p: add the 'topic' command

Use the 'topic' command as a convenience shortcut to start and merge topic
branches in rebase scripts:

topic begin side-branch at 1234567 (Hello World)
...
topic end side-branch Merge 'side-branch' into uggaly-uggaly

is a short form for

bookmark merge-parent-of-side-branch
goto 1234567 (Hello World)
...
bookmark side-branch
goto merge-parent-of-side-branch
merge parents side-branch original mark1 Merge 'side-branch' ...

For further convenience, you can drop the 'at' part in 'topic begin' when
the branch should branch off of 'onto', and you can drop the 'original ...'
part when the merge message is "Merge '<topic>'".

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
git-rebase--interactive.sh
t/t3413-rebase-cmds.sh