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

Re: [PATCH] stash: --keep option just saves

From
Nanako Shiraishi <nanako3@lavabit.com>
Date
Feb 12, 2009, 08:17 UTC
Message-ID
<20090212171732.6117@nanako3.lavabit.com>
In-Reply-To
<7vljscbp60.fsf@gitster.siamese.dyndns.org>
Quoting Junio C Hamano <gitster@pobox.com> writes:
Show 8 quoted lines
> But I somewhat doubt if this line of change is a good idea to begin with.
>
> All talks about using stash --no-rest and snapshot share this problem.  By
> not making regular commits, you are denying yourself the rich set of tools
> git offers you to use on regular commits and the ancestry chains between
> them, and nobody explained what the benefits of not using normal commits
> on normal branches are, nor how the inconveniences from this aversion to
> branches forces you are justified by those unexplained benefits.
I'm sorry. I didn't think about such a negative aspect of adding the feature.
I can imagine that, after using many 'stash save --keep', I'll naturally want to manipulate changes between kept stashes, like running 'git log' to view the difference between each step and cherry-picking a change between ones next to each other etc. Because a list of stashes doesn't support such operations, additional support for them is needed to make it useful, but I agree with you that such additions are not real features that are necessary, because git already supports these operations if I used commits on a normal branch instead. Use of 'stash save --keep' is making it necessary to implement duplicated features for no good reason.
It may also confuse users by unnecessarily adding another way to do the same thing. So I think you're right to point out that this is not a good thing to add.
Show 5 quoted lines
> This topic won't go beyond 'next' during this round because it started way
> after -rc0 was tagged.  It is not urgent to decide what will happen to the
> recent "snapshot" related topics, and we have plenty of time to toss ideas
> around, but currently I have to say that I am not very enthused about any
> of the causes mentioned in various discussion threads.
You already applied my patch on pu branch. It's OK by me if you dropped it.
Thank you for your comments.
-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/
Previous: Miles BaderNext: Junio C Hamano
Message 6 of 8 in “stash: --keep option just saves”
  1. stash: --keep option just savesNanako Shiraishi, Feb 11, 2009
  2. Junio C HamanoFeb 11, 2009
  3. Miles BaderFeb 12, 2009
  4. Nanako ShiraishiFeb 12, 2009
  5. Miles BaderFeb 12, 2009
  6. Nanako ShiraishiFeb 12, 2009
  7. Junio C HamanoFeb 12, 2009
  8. Björn SteinbrinkFeb 13, 2009

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.