You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the git commit hook to format code runs on and commits all files that are changed, if you try to use git add -p to stage chunks of a file, the entire file gets committed.
This is really bad for workflows that make a bunch of changes and then chop them up into digestible commits.
The text was updated successfully, but these errors were encountered:
phated
changed the title
Formatting git hook breaks git add -p
Formatting git hook breaks git add -p workflows
Feb 27, 2023
Since the git commit hook to format code runs on and commits all files that are changed, if you try to use
git add -p
to stage chunks of a file, the entire file gets committed.This is really bad for workflows that make a bunch of changes and then chop them up into digestible commits.
The text was updated successfully, but these errors were encountered: