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

[PATCH] Read the config in rev-list

From
Fredrik Kuivinen <frekui@gmail.com>
Date
Feb 18, 2007, 09:36 UTC
Message-ID
<20070218093621.10137.25801.stgit@c165>

Otherwise "git rev-list --header HEAD" will not do the right thing if i18n.commitencoding is set.

Signed-off-by: Fredrik Kuivinen <frekui@gmail.com>
---
 builtin-rev-list.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index 1bb3a06..c2db5a5 100644
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
@@ -226,6 +226,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
 	int i;
 	int read_from_stdin = 0;
 
+	git_config(git_default_config);
 	init_revisions(&revs, prefix);
 	revs.abbrev = 0;
 	revs.commit_format = CMIT_FMT_UNSPECIFIED;
Message 1 of 1 in “Read the config in rev-list”
  1. Read the config in rev-listFredrik Kuivinen, Feb 18, 2007

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.