]> git.ipfire.org Git - thirdparty/git.git/commit
var: add GIT_SEQUENCE_EDITOR variable
authorSean Allred <allred.sean@gmail.com>
Sat, 17 Dec 2022 23:09:59 +0000 (23:09 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 18 Dec 2022 02:48:26 +0000 (11:48 +0900)
commit4c3dd9304e49402bd4ee19dfaa4c21d0217fb582
tree9c3ec1efa172c19c821375a83e9c865991bb833f
parent57e2c6ebbe7108b35ba30184dcbcb6c34c929ad8
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>
Documentation/git-var.txt
builtin/var.c
t/t0007-git-var.sh