Re:High-Level Problems with Git and How to Fix Them
by masklinn on Tuesday December 12, 2017 @07:57AM
(#15905250)
> I realize that I've actually made three separate subchanges so I do partial stages to create each commit.
You can trivially replicate that without staging by amending the HEAD commit, or building a bunch of partial commits then folding them with rebase -i. You can even do that automatically by committing with --fixup or --squash
Re:High-Level Problems with Git and How to Fix Them
by uiri on Tuesday December 12, 2017 @11:35AM
(#15906892)
That assumes that I'm making multiple smaller commits along the way. I'm not. Without staging, I'm stuck making one big commit. Splitting a single big commit into multiple smaller commits with an interactive rebase is dependent upon the staging area too.
I use git status -s and git diff quite a bit as a sanity check (for things like whitespace) and to do first party code review before I send anything out.
The staging area is a core part of my personal git workflow pre-commit. It seems to be producing good results so far.