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

Formatting git hook breaks git add -p workflows #192

Open
phated opened this issue Feb 27, 2023 · 0 comments
Open

Formatting git hook breaks git add -p workflows #192

phated opened this issue Feb 27, 2023 · 0 comments

Comments

@phated
Copy link
Contributor

phated commented 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.

@phated phated changed the title Formatting git hook breaks git add -p Formatting git hook breaks git add -p workflows Feb 27, 2023
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