Skip to content
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

provide an out-of-worktree configuration mechanism #11

Open
anarcat opened this issue Mar 17, 2021 · 3 comments
Open

provide an out-of-worktree configuration mechanism #11

anarcat opened this issue Mar 17, 2021 · 3 comments

Comments

@anarcat
Copy link

anarcat commented Mar 17, 2021

it would be nice if this repo would be configurable without touching the worktree. i use this repo extensively in my local work environments, where it's kind of annoying to have a "dirty" tree, especially since i like to send my contributions back here. ;)

typically, git hooks would consult the configuration stored in git-config, for example... is that something that would be accepted as a patch? maybe as an override to the config file?

this would also allow different people with different policies to use the same code more easily. the canonical example for me is #9, where we have more ... relaxed documentation policies (because of an old codebase).

in fact, now that i think of it, this would make it possible to have per-repository (say you're not in a monorepo) policies, while using the same hook repository everywhere...

@cmeissner
Copy link
Member

Your idea sounds good to me. Do you want to work on? It will be very appreciated.

@anarcat
Copy link
Author

anarcat commented Mar 17, 2021

i'll think about it... there are lots of settings. :p

maybe the design would be that the defaults would be defined in the config file, and then ask for the same setting (lowercased) in git config... but then the devil is in the details...

@cmeissner
Copy link
Member

I think if this feature will be implemented, the config from this repo should be the default and user and project git config should get higher precedence.

And sure the details will be hard to get.

It would be nice if you implement it. I guess here we don't have enough time to do it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants