From 251a45623929ddfa91e5667bfcdac5d4e31b3cb1 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 28 Jan 2009 04:17:07 +0100 Subject: [PATCH] rebase -i -p: add a 'bookmark' command Signed-off-by: Johannes Schindelin --- git-rebase--interactive.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index f7d8aa5d74..32d5734756 100755 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -475,6 +475,10 @@ do_next () { ;; esac ;; + bookmark|b) + mark_action_done + git rev-parse --verify HEAD > "$REWRITTEN"/"$sha1" + ;; goto|g) comment_for_reflog goto mark_action_done @@ -688,6 +692,7 @@ generate_script_help () { # g, goto = reset the current state to the given commit # m, merge parents original # = redo the given merge commit +# b, bookmark = when reaching this command, name the current revision # # If you remove a line here THAT COMMIT WILL BE LOST. # However, if you remove everything, the rebase will be aborted. -- 2.11.4.GIT