From: Michael Haggerty Date: Thu, 14 Jan 2010 05:54:44 +0000 (+0100) Subject: rebase -i: Use symbolic constant $MSG consistently X-Git-Tag: v1.7.0-rc0~68^2~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bdb011ade4db4a50cde13b5ec870c3dccff7e093;p=git.git rebase -i: Use symbolic constant $MSG consistently The filename constant $MSG was previously used in some places and written out literally in others. Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano --- diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index 2e1b2fa3c..efd574997 100755 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -129,8 +129,8 @@ make_patch () { echo "Root commit" ;; esac > "$DOTEST"/patch - test -f "$DOTEST"/message || - git cat-file commit "$1" | sed "1,/^$/d" > "$DOTEST"/message + test -f "$MSG" || + git cat-file commit "$1" | sed "1,/^$/d" > "$MSG" test -f "$DOTEST"/author-script || get_author_ident_from_commit "$1" > "$DOTEST"/author-script } @@ -341,7 +341,7 @@ peek_next_command () { } do_next () { - rm -f "$DOTEST"/message "$DOTEST"/author-script \ + rm -f "$MSG" "$DOTEST"/author-script \ "$DOTEST"/amend || exit read command sha1 rest < "$TODO" case "$command" in @@ -559,7 +559,7 @@ first and then run 'git rebase --continue' again." die "Cannot rewind the HEAD" fi export GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE && - git commit --no-verify -F "$DOTEST"/message -e || { + git commit --no-verify -F "$MSG" -e || { test -n "$amend" && git reset --soft $amend die "Could not commit staged changes." }