Devcontainer support for import of Git config files within the XDG_CONFIG_HOME/git directory #9469
Labels
containers
Issue in vscode-remote containers
info-needed
Issue requires more information from poster
I am following the XDG Base Directory spec and my Git config file(s) are located in
~/.config/git
directory on my WSL2 instance. My current understanding of the Devcontainers remote extension is that the"dev.containers.copyGitConfig"
expects users to have all of their Git config within~/.gitconfig
file.I'd like to request the addition of a feature to support sourcing Git config and any includes from the Git config file from either:
Further, if the config file provides one or more of
include.path = ~/.config/git/filename
orinclude.path = ~/otherfile
directives, the files should also be copied into the same locations within the Devcontainer user home directory.One suggestion might be to provide an additional optional Devcontainers config parameter to specify the path to the parent config file, with the extension testing for the presence of the file, and parsing the file for the include.path file references to be copied.
Environment:
References
The text was updated successfully, but these errors were encountered: