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

How about appending the file contents instead of replacing them? #115

Open
chouchouji opened this issue Oct 12, 2024 · 0 comments
Open

Comments

@chouchouji
Copy link

chouchouji commented Oct 12, 2024

Reason

I set some commands in commit-msg hook by myself. When I use this package, it will rewrite commit-msg file if I set that hook.

Suggestion

How about replacing writeFileSync with appendFileSync?

Code

The source code position is https://github.com/toplenboren/simple-git-hooks/blob/master/simple-git-hooks.js#L204

image

image

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

No branches or pull requests

1 participant