git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] trailer: load config to handle core.commentChar
@ 2016-04-27 19:24 Rafal Klys
  2016-04-27 20:13 ` Christian Couder
  0 siblings, 1 reply; 4+ messages in thread
From: Rafal Klys @ 2016-04-27 19:24 UTC (permalink / raw)
  To: git; +Cc: Christian Couder, Rafal Klys

Add call to git_config(git_default_config, NULL) to update the
comment_char_line from default '#' to possible different value set in
core.commentChar.

Signed-off-by: Rafal Klys <rafalklys@wp.pl>
---
 trailer.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/trailer.c b/trailer.c
index 8e48a5c..a3700b4 100644
--- a/trailer.c
+++ b/trailer.c
@@ -888,6 +888,9 @@ void process_trailers(const char *file, int in_place, int trim_empty, struct str
 	git_config(git_trailer_default_config, NULL);
 	git_config(git_trailer_config, NULL);
 
+	/* for core.commentChar */
+	git_config(git_default_config, NULL);
+
 	lines = read_input_file(file);
 
 	if (in_place)
-- 
2.8.1.68.g625efa9.dirty

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-27 20:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-27 19:24 [PATCH] trailer: load config to handle core.commentChar Rafal Klys
2016-04-27 20:13 ` Christian Couder
2016-04-27 20:31   ` Junio C Hamano
2016-04-27 20:33     ` Eric Sunshine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).