Add grep.fullName config variable
PATCH 1/1 Add grep.fullName config variable
This configuration variable sets the default for the --full-name option.
Signed-off-by Andreas Schwab <[email protected]>
--- Documentation/git-grep.txt | 3 +++ grep.c | 5 +++++ 2 files changed, 8 insertions(+)
Documentation/git-grep.txt +3 -0
@@ -53,6 +53,9 @@ grep.extendedRegexp:: option is ignored when the 'grep.patternType' option is set to a value other than 'default'. +grep.fullName:: + If set to true, enable '--full-name' option by default. + OPTIONS -------
grep.c +5 -0
@@ -86,6 +86,11 @@ int grep_config(const char *var, const char *value, void *cb)return 0 ; } +if (!strcmp (var,"grep.fullname" )) { + opt->relative = !git_config_bool (var, value); +return 0 ; + } +if (!strcmp (var,"color.grep" )) opt->color =git_config_colorbool (var, value);else if (!strcmp (var,"color.grep.context" ))
Signature · 7 lines
1.9.0 -- Andreas Schwab, [email protected] GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."