@matheusbsbs / matheus-bagliano / commits / 5ca5377da0
Fork 0

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 <bwalton@artsci.utoronto.ca> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ben Walton committed Nov 4, 2009 at 13:06 UTC 5ca5377da017311a08f625e32c58a0d118e7fda6
1 file changed +23
configure.ac
+23
@@ -246,6 +246,29 @@ GIT_PARSE_WITH(iconv))
246 # Define USE_STDEV below if you want git to care about the underlying device
247 # change being considered an inode change from the update-index perspective.
248
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 +
272 #
273 # Define SHELL_PATH to provide path to shell.
274 GIT_ARG_SET_PATH(shell)