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

[Feature request] git config - includeif - resolve symlinks using realpath

From
LGLamy Geier <lamyergeier@gmail.com>
Date
Mar 7, 2024, 00:20 UTC
Message-ID
<44a24958-ba39-47aa-a15b-61b13cc8b62a@gmail.com>
Hello
It will be useful if the path in includeIf "gitdir" uses the resolved path.

For example, in the following snippet, ~/Documents/Git/Wiki is symlinked to several different locations. When using git from other locations, the following won't get included. I verified this using `git config --list --show-origin --show-scope`

```
[includeIf "gitdir:~/Documents/Git/Wiki/"]
	path = ~/Documents/Git/Wiki/.gitconfig
```
Feature request: Please resolve the path, before using it.
-- 
Thanks and Regards

Lamy
Message 1 of 1 in “[Feature request] git config - includeif - resolve symlinks using realpath”
  1. Lamy GeierMar 7, 2024

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.