diff options
author | Adam Roben <aroben@apple.com> | 2007-07-20 09:09:35 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-07-20 11:46:34 +0400 |
commit | ef0c2abf3e5061f891b7f07953ef3b0695f52c89 (patch) | |
tree | a48c4cbea302eb1d41bc1d798c1e85bcc892ea8a /git-tag.sh | |
parent | a7738c77f1f17ced885ce96e986b948a0b256452 (diff) |
Add GIT_EDITOR environment and core.editor configuration variables
These variables let you specify an editor that will be launched in
preference to the EDITOR and VISUAL environment variables. The order
of preference is GIT_EDITOR, core.editor, EDITOR, VISUAL.
[jc: added a test and config variable documentation]
Signed-off-by: Adam Roben <aroben@apple.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-tag.sh')
-rwxr-xr-x | git-tag.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-tag.sh b/git-tag.sh index 1c25d88c72..5ee3f50a3c 100755 --- a/git-tag.sh +++ b/git-tag.sh @@ -177,7 +177,7 @@ if [ "$annotate" ]; then ( echo "#" echo "# Write a tag message" echo "#" ) > "$GIT_DIR"/TAG_EDITMSG - ${VISUAL:-${EDITOR:-vi}} "$GIT_DIR"/TAG_EDITMSG || exit + git_editor "$GIT_DIR"/TAG_EDITMSG || exit else printf '%s\n' "$message" >"$GIT_DIR"/TAG_EDITMSG fi |