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

[PATCH] config: respect '~' and '~user' in mailmap.file

From
Øystein Walle <oystwa@gmail.com>
Date
May 27, 2014, 08:45 UTC
Message-ID
<1401180358-27281-1-git-send-email-oystwa@gmail.com>

git_config_string() does not handle '~' and '~user' as part of the value. Using git_config_pathname() fixes this.

Signed-off-by: Øystein Walle <oystwa@gmail.com>
---
 config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config.c b/config.c
index 314d8ee..ec7af5f 100644
--- a/config.c
+++ b/config.c
@@ -963,7 +963,7 @@ static int git_default_push_config(const char *var, const char *value)
 static int git_default_mailmap_config(const char *var, const char *value)
 {
 	if (!strcmp(var, "mailmap.file"))
-		return git_config_string(&git_mailmap_file, var, value);
+		return git_config_pathname(&git_mailmap_file, var, value);
 	if (!strcmp(var, "mailmap.blob"))
 		return git_config_string(&git_mailmap_blob, var, value);
 
-- 
2.0.0.rc4
Next: Jeff King
Message 1 of 3 in “config: respect '~' and '~user' in mailmap.file”
  1. config: respect '~' and '~user' in mailmap.fileØystein Walle, May 27, 2014
  2. Jeff KingMay 27, 2014
  3. Øystein WalleMay 27, 2014

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.