aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-var.txt
diff options
context:
space:
mode:
authorSean Allred <allred.sean@gmail.com>2022-12-17 23:09:59 +0000
committerJunio C Hamano <gitster@pobox.com>2022-12-18 11:48:26 +0900
commit4c3dd9304e49402bd4ee19dfaa4c21d0217fb582 (patch)
tree9c3ec1efa172c19c821375a83e9c865991bb833f /Documentation/git-var.txt
parent57e2c6ebbe7108b35ba30184dcbcb6c34c929ad8 (diff)
downloadgit-4c3dd9304e49402bd4ee19dfaa4c21d0217fb582.tar.gz
var: add GIT_SEQUENCE_EDITOR variable
The editor program used by Git when editing the sequencer "todo" file is determined by examining a few environment variables and also affected by configuration variables. Introduce "git var GIT_SEQUENCE_EDITOR" to give users access to the final result of the logic without having to know the exact details. This is very similar in spirit to 44fcb497 (Teach git var about GIT_EDITOR, 2009-11-11) that introduced "git var GIT_EDITOR". Signed-off-by: Sean Allred <allred.sean@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-var.txt')
-rw-r--r--Documentation/git-var.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/git-var.txt b/Documentation/git-var.txt
index 0ab5bfa7d7..f40202b8e3 100644
--- a/Documentation/git-var.txt
+++ b/Documentation/git-var.txt
@@ -50,6 +50,14 @@ ifdef::git-default-editor[]
The build you are using chose '{git-default-editor}' as the default.
endif::git-default-editor[]
+GIT_SEQUENCE_EDITOR::
+ Text editor used to edit the 'todo' file while running `git rebase
+ -i`. Like `GIT_EDITOR`, the value is meant to be interpreted by
+ the shell when it is used. The order of preference is the
+ `$GIT_SEQUENCE_EDITOR` environment variable, then
+ `sequence.editor` configuration, and then the value of `git var
+ GIT_EDITOR`.
+
GIT_PAGER::
Text viewer for use by Git commands (e.g., 'less'). The value
is meant to be interpreted by the shell. The order of preference