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

[PATCH 01/12] git-grep: read config

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Jul 23, 2008, 14:55 UTC
Message-ID
<20080723145535.GA29053@laptop>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 builtin-grep.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/builtin-grep.c b/builtin-grep.c
index 631129d..cc9ba6b 100644
--- a/builtin-grep.c
+++ b/builtin-grep.c
@@ -517,6 +517,8 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
 	const char **paths = NULL;
 	int i;
 
+	git_config(git_default_config, NULL);
+
 	memset(&opt, 0, sizeof(opt));
 	opt.prefix_length = (prefix && *prefix) ? strlen(prefix) : 0;
 	opt.relative = 1;
-- 
1.5.5.GIT
Next: Jeff King
Message 1 of 9 in “git-grep: read config”
  1. 01/12 git-grep: read configNguyễn Thái Ngọc Duy, Jul 23, 2008
  2. Jeff KingJul 24, 2008
  3. Nguyen Thai Ngoc DuyJul 24, 2008
  4. Sverre RabbelierJul 24, 2008
  5. Nguyen Thai Ngoc DuyJul 24, 2008
  6. Sverre RabbelierJul 24, 2008
  7. Jay SoffianJul 24, 2008
  8. Jeff KingJul 24, 2008
  9. Nguyen Thai Ngoc DuyJul 24, 2008

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.