From 406400ce4f69e79b544dd3539a71b85d99331820 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 5 Feb 2008 11:01:45 +0100 Subject: git-commit: set GIT_EDITOR=: if editor will not be launched This is a preparatory patch that provides a simple way for the future prepare-commit-msg hook to discover if the editor will be launched. Signed-off-by: Junio C Hamano --- Documentation/hooks.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Documentation/hooks.txt') diff --git a/Documentation/hooks.txt b/Documentation/hooks.txt index f110162b01..e8d80cfcdb 100644 --- a/Documentation/hooks.txt +++ b/Documentation/hooks.txt @@ -61,6 +61,10 @@ The default 'pre-commit' hook, when enabled, catches introduction of lines with trailing whitespaces and aborts the commit when such a line is found. +All the `git-commit` hooks are invoked with the environment +variable `GIT_EDITOR=:` if the command will not bring up an editor +to modify the commit message. + commit-msg ---------- -- cgit v1.2.3