-
Notifications
You must be signed in to change notification settings - Fork 10.3k
dotnet-format breaks partial commits #29768
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
Comments
@ryanbrandenburg - making you aware of this issue as you added the same |
@javiercn Do you have a suggestion about what we should do about this? I’ve been fighting it for the last couple of weeks but it’s a drag. Breaking git defaults is pretty rough on contributors. |
I think I putted it up for discussion on DoI, but let me see if there's something quick we can do. |
@SteveSandersonMS Is this partial commit as in you have a file that is partially "staged"? (Some changes on the file are staged but some other aren't?) |
It’s using the GitHub Desktop client, and selecting a subset of the lines to include in the commit. |
Cool, I think I figured out the way, give me 30 min |
@SteveSandersonMS this should work. Can you give it a try on your box? (I did on mine and works fine) |
I've been noticing some weirdness today. When I try to commit a subset of the files I've modified, or a subset of the lines within those files, sometimes my other modifications get committed too. This is causing some havoc with my coding workflow, making me think I was making all kinds of weird mistakes... :)
Looking at
.githooks\pre-commit
, it doesn't appear to account for partial commits - it just fully adds all the files it touches. Am I missing something here that's supposed to make this work?I'm disabling it locally for now.
The text was updated successfully, but these errors were encountered: