Open chouchouji opened 1 month ago
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.
commit-msg
How about replacing writeFileSync with appendFileSync?
writeFileSync
appendFileSync
The source code position is https://github.com/toplenboren/simple-git-hooks/blob/master/simple-git-hooks.js#L204
Reason
I set some commands in
commit-msg
hook by myself. When I use this package, it will rewritecommit-msg
file if I set that hook.Suggestion
How about replacing
writeFileSync
withappendFileSync
?Code
The source code position is https://github.com/toplenboren/simple-git-hooks/blob/master/simple-git-hooks.js#L204