From: Michael Haggerty Date: Thu, 14 Jan 2010 05:54:42 +0000 (+0100) Subject: rebase -i: Inline expression X-Git-Tag: v1.7.0-rc0~68^2~15 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aa7eaff8b1514ef1241c2f5867670b495b33c455;p=git.git rebase -i: Inline expression Inline expression when generating output rather than overwriting the "sha1" local variable with a short SHA1. Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano --- diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index aae94d2f6..6fd3105b5 100755 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -167,8 +167,7 @@ pick_one () { if test -z "$no_ff" -a "$current_sha1" = "$parent_sha1" then output git reset --hard $sha1 - sha1=$(git rev-parse --short $sha1) - output warn Fast-forward to $sha1 + output warn Fast-forward to $(git rev-parse --short $sha1) else output git cherry-pick "$@" fi