simple-git-hooks icon indicating copy to clipboard operation
simple-git-hooks copied to clipboard

How about appending the file contents instead of replacing them?

Open chouchouji opened this issue 1 year ago • 0 comments

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

chouchouji avatar Oct 12 '24 09:10 chouchouji