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.
-
Unlike MacOS and Linux-based distros,
git
on 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\gitconfig
git
works around this by having a compile-time variable$(prefix)
that presumably is configured when buildinggit
for these environments.Unlike
git
,git-config
in 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):
msysGit
andGit for Windows
, dropping support forMSYS2-native
.MSYS2-native
to 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-config
if we want proper testing on Windows.I'm conflicted as all the paths moving forward with
git-config
on Windows has their own strong, valid merits. so feedback would be greatly appreciated.Beta Was this translation helpful? Give feedback.
All reactions