News for hackers. Stuff that matters.
Re:Highlights from Git 2.35 by wiredfool on Tuesday January 25, 2022 @06:07AM (#30070513)
I'd love to be able to stash individual bits of a diff (from magit) to do something like bisecting on the current changes.

Something like how the current `add -p` allows you to select or reject any given chunk.

Re:Highlights from Git 2.35 by jzm2k on Tuesday January 25, 2022 @06:25AM (#30070620)
Doesn't git stash save -p accomplish that?
Re:Highlights from Git 2.35 by wiredfool on Tuesday January 25, 2022 @07:41AM (#30071123)
The way to get a correct answer on the internet:

  1) Post the wrong answer.
  2) Get corrected.
  3) Profit
Re:Highlights from Git 2.35 by cdrini on Tuesday January 25, 2022 @09:59AM (#30072467)
Cunningham's Law! "the best way to get the right answer on the internet is not to ask a question; it's to post the wrong answer."
Re:Highlights from Git 2.35 by rawling on Tuesday January 25, 2022 @07:02AM (#30070856)
> But what if you only want to store part of your changes in the stash? You could use git stash -p and interactively select hunks to stash or keep.

It's even right in the article. (Then goes on to describe how this change means you can stash those chunks easily if you've already selectively staged them.)