You shouldn't do that anyway. Per-line staging is reasonably simple (git add -p), but the real question is: why would you want to do that in the first place?
Normally, you'd want to commit an entire working changeset.
When you have something small and contained... absolutely.
But when you start touching multiple things at once (and it can be as little as fixing a typo).
Then I do prefer on making an atomic commit, even if only changing a single letter.
More than that, multiple times I find myself working a whole feature that I can commit block by block with a more meaningful message than if I were to squash all of them in a single commit.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You shouldn't do that anyway. Per-line staging is reasonably simple (
git add -p), but the real question is: why would you want to do that in the first place?Normally, you'd want to commit an entire working changeset.
When you have something small and contained... absolutely.
But when you start touching multiple things at once (and it can be as little as fixing a typo).
Then I do prefer on making an atomic commit, even if only changing a single letter.
More than that, multiple times I find myself working a whole feature that I can commit block by block with a more meaningful message than if I were to squash all of them in a single commit.