-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for %PROGRAMDATA%\Git\config #104
Conversation
Between the libgit2 and the Git for Windows project, there has been a discussion how we could share Git configuration to avoid duplication (or worse: skew). Earlier, libgit2 was nice enough to just re-use Git for Windows' C:\Program Files (x86)\Git\etc\gitconfig but with the upcoming Git for Windows 2.x, there would be more paths to search, as we will have 64-bit and 32-bit versions, and the corresponding config files will be in %PROGRAMFILES%\Git\mingw64\etc and ...\mingw32\etc, respectively. Therefore we came to a consensus to use %PROGRAMDATA%\Git as the location for Git-specific files that are of wider interest than just Git for Windows. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@ethomson would you care to take a look? It seems to work as expected. |
Add support for %PROGRAMDATA%\Git\config
I merged already to go forward with a merging rebase; please feel free to review, still. With the merging rebase workflow, we can fix commits even after merging the PRs. |
Add support for %PROGRAMDATA%\Git\config Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
🆒 |
Add support for %PROGRAMDATA%\Git\config Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add support for %PROGRAMDATA%\Git\config Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
What about template dir? |
The templates provide Bash scripts to be adjusted by the user. Unless I am mistaken, libgit2 does not even support them, correct? I would not worry about them if that is the case. |
Add support for %PROGRAMDATA%\Git\config Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
libgit2 does support the template dir for creating new repositories - however, libgit2 does not support hooks out of the box. |
@csware is there already support in libgit2 for the templates in |
@dscho: Not yet (see the TODO on the libgit2 merge request). I did not implement this if this is not supported by Git for Windows. |
Okay. I won't implement it unless it is really needed, either ;-) |
Add support for %PROGRAMDATA%\Git\config Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Back out the super-config branch in favor of the program-data-config branch (which is a better version of the same feature). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
As discussed in libgit2/libgit2#3040, the Windows-based Git projects (both Git for Windows and libgit2) would like to share configuration. It was determined that the best (and most "Windows") way is to have the system-wide configuration in
%PROGRAMDATA%\Git\config
.This requires three changes in Git for Windows:
etc/gitconfig
and the restetc/gitconfig
from Git for Windows 1.x setups