summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-07-09 15:25:40 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-07-09 15:25:40 -0700
commit3a506079d2f3375dd1f4bbd0fe3793dd74fb7d2d (patch)
tree8c0dd95317c45fee457103c4ecf590cddc17bba0 /builtin
parentMerge branch 'js/t3404-typofix' (diff)
parentinterpret-trailers: load default config (diff)
downloadtgif-3a506079d2f3375dd1f4bbd0fe3793dd74fb7d2d.tar.xz
Merge branch 'jk/trailers-use-config'
"git interpret-trailers" always treated '#' as the comment character, regardless of core.commentChar setting, which has been corrected. * jk/trailers-use-config: interpret-trailers: load default config
Diffstat (limited to 'builtin')
-rw-r--r--builtin/interpret-trailers.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/interpret-trailers.c b/builtin/interpret-trailers.c
index 8ae40dec47..f101d092b8 100644
--- a/builtin/interpret-trailers.c
+++ b/builtin/interpret-trailers.c
@@ -10,6 +10,7 @@
#include "parse-options.h"
#include "string-list.h"
#include "trailer.h"
+#include "config.h"
static const char * const git_interpret_trailers_usage[] = {
N_("git interpret-trailers [--in-place] [--trim-empty] [(--trailer <token>[(=|:)<value>])...] [<file>...]"),
@@ -112,6 +113,8 @@ int cmd_interpret_trailers(int argc, const char **argv, const char *prefix)
OPT_END()
};
+ git_config(git_default_config, NULL);
+
argc = parse_options(argc, argv, prefix, options,
git_interpret_trailers_usage, 0);