-
Notifications
You must be signed in to change notification settings - Fork 44
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 PREFER_APPEND_FILE_SYNC env #118
base: master
Are you sure you want to change the base?
Conversation
Thanks for the PR. Can you please add some tests, so that no one would be to break your code :-) |
cafec52
to
3261d69
Compare
Thanks for your review. I had added test cases. |
But what if the user run |
This is a rare scenario, and we should specify in the document what consequences it will bring. |
Oh, I miss understood, a temporary env variable to init |
We can provide a detailed explanation of the purpose of this environment variable to prevent unnecessary problems for users |
|
@chouchouji Hi, tests are failing on CI after merging #120, can you rebase? And for the env name, I think |
Actually, I still do not get the usecase for this option.. Why would I need to use append file sync, and not simply set the hooks myself if I want that level of customization? Can you please share your usecase @chouchouji |
I forgot to mention that if the user use
So never works as expected. |
I add some commands in |
Please check the comment below. I show my usecase. Maybe we can find other methods to resolve my problem. |
Yes. My behavior is use cli. So I think env is good for me. But some users maybe use this tool unlike me. |
From what I understood it sounds like you can either:
I understand that it cannot be done this way if you work in a team on some project because:
To handle this case we can add something like Like simple-git-hooks.custom.json const config = {
"commit-msg": null // will overwrite settings in config if set to null
} That way you will be able to have both config and your commands inside of simple-git-hooks or you will be able to simply remove commit-msg from simple-git-hooks configuration and handle commit-msg hook yourself All these without the need to commit the code elsewhere I've implemented something similar in another project, open-condo-software/condo#5893 open source engineers want to override translations that we have set @chouchouji wyt? |
Thanks for your reply and suggestion. I think it is a good idea. |
resolve #115