News for hackers. Stuff that matters.
Re:Purposes, Concepts, Misfits, and a Redesign of Git by spinningarrow on Saturday October 01, 2016 @04:37AM (#12617052)
So what would be the workflow for committing (and perhaps pushing) partial changes in that case? Say you've made a lot of changes and they don't all belong together.
Re:Purposes, Concepts, Misfits, and a Redesign of Git by gkya on Saturday October 01, 2016 @08:07AM (#12617522)
If I needed to do a partial commit I'd record the diff ("git diff > big.patch" or git stash), clean the repository, and build the patch to be committed manually picking from the recorded diff, test thoroughly and commit only when the patch is coherent (ie tests pass, compiles and runs). Then I'd just apply the rest of the patch to continue working. AFAIK the git model (git add [-p]) and history editing makes it very easy and probable to produce incoherent commits which when checked out does not compile, test all-OK or behave wrong. I use CVS for my personal stuff for various reasons but even if I used git I'd do it like this.

P.S. if your granularity is in the level if files and not individual hunks of the overall patch then you can just "cvs/git commit files..." easily but still, it'll go in untested and you may have forgotten a change that was required in order to make the commited patch valid and coherent.

Re:Purposes, Concepts, Misfits, and a Redesign of Git by bicolao on Wednesday October 05, 2016 @08:07AM (#12643114)
Do partial commits. Run a new interactive rebase session, set "edit" to all those commits so you can test out individual ones and fix up some more if needed. Basically the same outcome, but less manual diff editing.
Re:Purposes, Concepts, Misfits, and a Redesign of Git by rtb on Sunday October 02, 2016 @11:04AM (#12622656)
I used to do that with SVN. What a pain in the ass.

Git's version is miles better.