Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-05-31 00:53:45 +0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-31 05:10:46 +0400
commit2036d841020b7500eca7d568bd0c353b4fe73408 (patch)
treebb1208cb084fcbe33ab225db7dec133a5eb19d30 /git-commit-script
parent866b973b5d418622cbe28fea85169379dcb30f9d (diff)
[PATCH] Buglets fix in the new two scripts
Should be obvious... - Use $VISUAL, $EDITOR, in this order if set, and fall back on vi. - Status R, C, D, N usually are followed by number, so adjust case arms to that pattern. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'git-commit-script')
-rwxr-xr-xgit-commit-script4
1 files changed, 1 insertions, 3 deletions
diff --git a/git-commit-script b/git-commit-script
index f8d568ce88..42ee399bc1 100755
--- a/git-commit-script
+++ b/git-commit-script
@@ -5,9 +5,7 @@ then
cat .editmsg
exit 1
fi
-ED=${VISUAL:$EDITOR}
-ED=${ED:vi}
-$ED .editmsg
+${VISUAL:-${EDITOR:-vi}} .editmsg
grep -v '^#' < .editmsg | git-stripspace > .cmitmsg
[ -s .cmitmsg ] || exit 1
tree=$(git-write-tree) || exit 1