git-config and Windows
#166
Replies: 1 comment 2 replies
-
|
Thanks for the elaborate summary, I think I understand what the problem is. Since Thinking further in that direction, what about supporting such a Edit: Technically What do you think? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Unlike MacOS and Linux-based distros,
giton Windows has been (; sitll is?) relatively fractured. For example, you have three installation locations based on which native environment (read: not WSL or WSL2) you have:%ProgramFiles(x86)%\Git\etc\gitconfig%ProgramFiles%\Git\mingw64\etc\[MSYS2-install-path]\etc\gitconfiggitworks around this by having a compile-time variable$(prefix)that presumably is configured when buildinggitfor these environments.Unlike
git,git-configin isolation is used as a library, which means that we can't simply just assume which environment we're working in, especially forMSYS2-native, which does not have a compile-time known installation path.There are various paths moving forward that I've considered (subject to change; suggestions appreciated):
msysGitandGit for Windows, dropping support forMSYS2-native.MSYS2-nativeto provide an installation path during construction.If we chose to support Windows native git environments, we also need to consider how to test for this: I don't have a Windows environment, so testing for even one of the native implementations is difficult for me. We might need to spin up additional workflows for
git-configif we want proper testing on Windows.I'm conflicted as all the paths moving forward with
git-configon Windows has their own strong, valid merits. so feedback would be greatly appreciated.Beta Was this translation helpful? Give feedback.
All reactions