-
-
Notifications
You must be signed in to change notification settings - Fork 5
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 option to installer so it does not change values in the global .gitconfig #142
Comments
Thats true, the deeper problem here is that the installer uses the Gitconfig to store some of its persistent settings, it will always make sure that the variables it stores are consistent together. I think the variables under concern to not change is: Maybe we can say we dont change |
What I'm doing now is bypassing the installer altogether and doing my own installation. |
Generally all Maybe your suggestion is still somehow possible. I was thinking that the auto udpate feature makes everything quite complicated, but is really handy and shitty (nixos) at the same time. However, what should happen on an autoupdate (it sets Git config values potentially etc... also introducing maybe new values), so having an Could we outsource the I would need to think more on that. |
Having its own config file would be nice, but I'd also like to add it to my dotfiles config, so the problem would remain. |
Fixed by #160. The version v3 (not yet out) has an option in the install PR #144 should still be tackled to provide you this feature though. Will get merged whe v3 is ready. |
@gabyx I just tried the new installer, but there is no option for diff --git a/home/.gitconfig b/home/.gitconfig
index 588c57d..d1bd06d 100644
--- a/home/.gitconfig
+++ b/home/.gitconfig
@@ -65,7 +65,7 @@
squash = "!f() { git reset --hard $1; git merge --squash HEAD@{1}; git commit; }; f"
continue = "-c core.editor=true rebase --continue"
a = add :/
- hooks = !\"githooks-cli\"
+ hooks = !\"githooks-cli\"
parse-env-vars = "!f() { \
awk '{ \
finalstr = $0; \
@@ -119,10 +119,11 @@
[pack]
windowMemory = 0
[githooks]
- cloneUrl = https://github.com/gabyx/githooks.git
- cloneBranch = main
- installMode = manual
- pathForUseCoreHooksPath = /home/giggio/.githooks/templates/hooks
- runner = githooks-runner
- dialog = githooks-dialog
- maintainedHooks = all
+ cloneUrl = https://github.com/gabyx/githooks.git
+ cloneBranch = main
+ installMode = manual
+ pathForUseCoreHooksPath = /home/giggio/.githooks/templates/hooks
+ runner = githooks-runner
+ dialog = githooks-dialog
+ maintainedHooks = all
+ installDir = /home/giggio/.githooks I believe this issue should be reopened. |
I use dotfiles to configure my environment, when the installer changes the values in .gitconfig it creates unwanted changes.
It would be nice to have an option to disable changes to .gitconfig, and only setup the application files in the expected directory.
The installer could read .gitconfig to find
githooks.installDir
, and if not found, use the default location of$HOME/.githooks
.The text was updated successfully, but these errors were encountered: