From: Greg Price Date: Tue, 22 Dec 2009 22:22:56 GMT Subject: [PATCH RFC 3/4] rebase -i: Add the "ref" command Message-ID: <20091222222256.GX30538@dr-wily.mit.edu> In-Reply-To: <20091222222032.GU30538@dr-wily.mit.edu> This is useful for, e.g., rewriting a branch that has ancestor branches along the way. Signed-off-by: Greg Price --- git-rebase--interactive.sh | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index 0bd3bf7..25ac3e3 100755 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -367,6 +367,10 @@ do_next () { warn exit 0 ;; + ref) + mark_action_done + git update-ref $sha1 HEAD # $sha1 is actually a refname + ;; squash|s) comment_for_reflog squash -- 1.6.6.rc1.9.g2ad41.dirty