diff options
author | Adam Roben <aroben@apple.com> | 2007-07-19 22:09:35 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-07-20 00:46:34 -0700 |
commit | ef0c2abf3e5061f891b7f07953ef3b0695f52c89 (patch) | |
tree | a48c4cbea302eb1d41bc1d798c1e85bcc892ea8a /Documentation/config.txt | |
parent | Document how to tell git to not launch a pager (diff) | |
download | tgif-ef0c2abf3e5061f891b7f07953ef3b0695f52c89.tar.xz |
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 'Documentation/config.txt')
-rw-r--r-- | Documentation/config.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt index d0e9a175f4..a850d55bf6 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -281,6 +281,14 @@ core.excludesfile:: of files which are not meant to be tracked. See gitlink:gitignore[5]. +core.editor:: + Commands such as `commit` and `tag` that lets you edit + messages by lauching an editor uses the value of this + variable when it is set, and the environment variable + `GIT_EDITOR` is not set. The order of preference is + `GIT_EDITOR` environment, `core.editor`, `EDITOR` and + `VISUAL` environment variables and then finally `vi`. + core.pager:: The command that git will use to paginate output. Can be overridden with the `GIT_PAGER` environment variable. |