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

Fwd: feature request: enable config option paths relative to config location

From
Sparr <sparr0@gmail.com>
Date
Apr 21, 2020, 17:55 UTC
Message-ID
<CANp3UNAhWTt4ONhb7tThNJdaQSNQF_RMysmz12d8741+UPMb9A@mail.gmail.com>
In-Reply-To
<CANp3UNCnxh2Acwvj6tU6GCES3UzQ1JEmAr6qwFL236VVHrRnCA@mail.gmail.com>

Currently, setting commit.template to a relative path loads a file relative to the current git repository root. I would find it useful if there were a way to specify this and other config paths relative to the location of the git config file (.gitconfig or ~/.config/git/config or another specified config location).

My use case is distributing dotfiles to a group of users who do not all keep their git config in the same location. I would like them to be able to put the config and the commit template in the same place, wherever that is, and the template be used without needing to change the config contents.

Message 1 of 1 in “Fwd: feature request: enable config option paths relative to config location”
  1. SparrApr 21, 2020

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.