threads / discuss / 53276

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

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

## tl;dr

One message between Apr 21, 2020 and Apr 21, 2020.

replies: 0people: 1as markdown or json

Sparr· Apr 21, 2020, 17:55 UTC · lore

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.

← back to recent threads