git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC] stash: support filename argument

From
Jeff King <peff@peff.net>
Date
Jan 16, 2017, 23:49 UTC
Message-ID
<20170116234924.72aeqo6ltrgov54o@sigill.intra.peff.net>
In-Reply-To
<c0d46a97-b1c0-d9c9-e475-28e0368ac61f@gmx.net>
On Mon, Jan 16, 2017 at 01:41:02AM +0100, Stephan Beyer wrote:
Show 5 quoted lines
> However, going further, the next feature to be requested could be "git
> stash --patch" ;D This leads me to think that the mentioned simulation
> of partial stashes might be something everyone might come up with who
> has basic understanding of git features and "git stash", and might be
> the more flexible and probably better solution to the problem.
Don't we have "git stash -p" already?[1]

I use it all the time, and it's very handy for picking apart changes. I have often wanted "git stash -p <paths>" to work, though.

-Peff
[1] I had to double check that it was not something I hacked together
    locally and forgot about. :) It's from dda1f2a5c (Implement 'git
    stash save --patch', 2009-08-13). I also worked up a "git stash
    apply -p", but I remember it was buggy, and I haven't looked at it
    in years. It's at:
      https://github.com/peff/git/commit/2c4ed43987b20cfb1605fbd7648d81e454c45c71
    if anybody is curious. I don't even recall what the problems were at
    this point.
Previous: Marc StrapetzNext: Johannes Schindelin
Message 5 of 8 in “[RFC] stash: support filename argument”
  1. Thomas GummererJan 15, 2017
  2. Junio C HamanoJan 16, 2017
  3. Stephan BeyerJan 16, 2017
  4. Marc StrapetzJan 16, 2017
  5. Jeff KingJan 16, 2017
  6. Johannes SchindelinJan 16, 2017
  7. Johannes SchindelinJan 16, 2017
  8. Thomas GummererJan 16, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.