Skip to content

Commit 5ca5377

Browse files
Ben Waltongitster
authored andcommitted
configure: add settings for gitconfig, editor and pager
Use the new GIT_PARSE_WITH_SET_MAKE_VAR macro to allow configuration settings for ETC_GITCONFIG, DEFAULT_PAGER and DEFAULT_EDITOR. Signed-off-by: Ben Walton <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d79d9e1 commit 5ca5377

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

configure.ac

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,29 @@ GIT_PARSE_WITH(iconv))
246246
# Define USE_STDEV below if you want git to care about the underlying device
247247
# change being considered an inode change from the update-index perspective.
248248

249+
#
250+
# Allow user to set ETC_GITCONFIG variable
251+
GIT_PARSE_WITH_SET_MAKE_VAR(gitconfig, ETC_GITCONFIG,
252+
Use VALUE instead of /etc/gitconfig as the
253+
global git configuration file.
254+
If VALUE is not fully qualified it will be interpretted
255+
as a path relative to the computed prefix at runtime.)
256+
257+
#
258+
# Allow user to set the default pager
259+
GIT_PARSE_WITH_SET_MAKE_VAR(pager, DEFAULT_PAGER,
260+
Use VALUE as the fall-back pager instead of 'less'.
261+
This is used by things like 'git log' when the user
262+
does not specify a pager to use through alternate
263+
methods. eg: /usr/bin/pager)
264+
#
265+
# Allow user to set the default editor
266+
GIT_PARSE_WITH_SET_MAKE_VAR(editor, DEFAULT_EDITOR,
267+
Use VALUE as the fall-back editor instead of 'vi'.
268+
This is used by things like 'git commit' when the user
269+
does not specify a preferred editor through other
270+
methods. eg: /usr/bin/editor)
271+
249272
#
250273
# Define SHELL_PATH to provide path to shell.
251274
GIT_ARG_SET_PATH(shell)

0 commit comments

Comments
 (0)