git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] trailer: load config to handle core.commentChar

From
RKRafal Klys <rafalklys@wp.pl>
Date
Apr 27, 2016, 19:24 UTC
Message-ID
<1461785062-23523-1-git-send-email-rafalklys@wp.pl>

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
Next: Christian Couder
Message 1 of 4 in “trailer: load config to handle core.commentChar”
  1. trailer: load config to handle core.commentCharRafal Klys, Apr 27, 2016
  2. Christian CouderApr 27, 2016
  3. Junio C HamanoApr 27, 2016
  4. Eric SunshineApr 27, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.