-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Description
I met this several times, I forget to run x fmt and push to remote, then get an format error and then rebase to fix it, it's trivial but it's a interruption.
If we add format fix in pre-commit, it won't happend again, it's a script like this one:
https://gist.github.com/folex/9496c457bcbbef36255a533389da740e
I tested in my local, seems works well.
Maybe we should add it to git hooks setup,
I'm not sure whether everyone like this behavior as default.
Metadata
Metadata
Assignees
Labels
No labels