News for hackers. Stuff that matters.
Re:Git 2.13 by eslaught on Tuesday May 09, 2017 @11:37PM (#14305741)
It's worth noting that "git stash -p" (aka "git stash --patch") already exists and allows you to commit individual files or hunks within a file. Though the cost is going through an interactive interface, so some users might prefer the new "git stash push". Still, if you can't upgrade, use "git stash -p".
Re:Git 2.13 by colept on Wednesday May 10, 2017 @12:20AM (#14305896)
Patch and interactive modes are the best thing next to sliced bread. I'll start with a feature and end up refactoring something and it's difficult to organize large sets of changes without them.
Re:Git 2.13 by ooqr on Wednesday May 10, 2017 @07:20AM (#14307349)
They're definitely prereqs to upper-level git wizardry
Re:Git 2.13 by tgummerer on Wednesday May 10, 2017 @06:16AM (#14307120)
If you can upgrade you can use "git stash -p" with pathspecs as well, so you can stash some changes in a specific file without having to go through changes in other files.