From 2036d841020b7500eca7d568bd0c353b4fe73408 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 30 May 2005 13:53:45 -0700 Subject: [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 Signed-off-by: Linus Torvalds --- git-commit-script | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'git-commit-script') diff --git a/git-commit-script b/git-commit-script index f8d568ce8..42ee399bc 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 -- cgit v1.2.1