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

Re: [PATCH v2] git-stash.txt: Add example "Using stash selectively"

From
Junio C Hamano <gitster@pobox.com>
Date
May 7, 2010, 16:11 UTC
Message-ID
<7v8w7vhetb.fsf@alter.siamese.dyndns.org>
In-Reply-To
<87pr194e3v.fsf_-_@jondo.cante.net>
Jari Aalto <jari.aalto@cante.net> writes:
Show 8 quoted lines
>> While the above is not _wrong_ per-se, it was somewhat hard to understand
>> for me without a description on _why_ you might want to do this.  It
>> didn't help that "put only selected files" really meant "get rid of
>> selected _changes_ from the working tree and the index temporarily".
>
> This demonstrates the difference between the end-user and developer. The
> end-used think in term of tangible objects: "I have files, I need to
> stash some of them".

Not really. You just demonstrated that you ignored "partial add". It is not so unusual for a user to need to express "I have a file, and I have two kinds of changes to it. The ones that I need now and the ones I need to postpone".

Previous: Jari Aalto
Message 6 of 6 in “git-stash.txt: Add new example”
  1. git-stash.txt: Add new examplejari.aalto@cante.net, May 5, 2010
  2. Junio C HamanoMay 5, 2010
  3. git-stash.txt: Add example "Using stash selectively"Jari Aalto, May 6, 2010
  4. Johannes SixtMay 6, 2010
  5. git-stash.txt: Add example "Using stash selectively"Jari Aalto, May 7, 2010
  6. Junio C HamanoMay 7, 2010

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.