author | Johannes Sixt <j6t@kdbg.org> | |
Fri, 11 Sep 2009 17:45:07 +0000 (19:45 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 11 Sep 2009 23:35:08 +0000 (16:35 -0700) | ||
commit | 25fc1786ab147daa9ffa43ebcbaf5c1cc6e50d4f | |
tree | 13fb38f6e94bfbfc5773c38c86dae4d385ee28b2 | tree | snapshot |
parent | 2affea4125a0ae6c528a14f14731748c1fad9a8a | commit | diff |
pager: set LESS=FRSX also on Windows
Previously, this environment variable was set in the pager_preexec
callback, which is conditionally-compiled only on Unix, because it is not,
and cannot be, called on Windows.
With this patch the env member of struct child_process is used to set
the environment variable, which also works on Windows.
Noticed by Alexey Borzenkov.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Previously, this environment variable was set in the pager_preexec
callback, which is conditionally-compiled only on Unix, because it is not,
and cannot be, called on Windows.
With this patch the env member of struct child_process is used to set
the environment variable, which also works on Windows.
Noticed by Alexey Borzenkov.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pager.c | diff | blob | history |