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

[PATCH] git-hash-object should honor config variables

From
Nicolas Pitre <nico@cam.org>
Date
Nov 10, 2007, 20:00 UTC
Message-ID
<alpine.LFD.0.9999.0711101458020.21255@xanadu.home>
... such as core.compression.
Signed-off-by: Nicolas Pitre <nico@cam.org>
---
diff --git a/hash-object.c b/hash-object.c
index 18f5017..0a58f3f 100644
--- a/hash-object.c
+++ b/hash-object.c
@@ -42,6 +42,8 @@ int main(int argc, char **argv)
 	int prefix_length = -1;
 	int no_more_flags = 0;
 
+	git_config(git_default_config);
+
 	for (i = 1 ; i < argc; i++) {
 		if (!no_more_flags && argv[i][0] == '-') {
 			if (!strcmp(argv[i], "-t")) {
Message 1 of 1 in “git-hash-object should honor config variables”
  1. git-hash-object should honor config variablesNicolas Pitre, Nov 10, 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.