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

Re: [PATCH] stash: tighten IS_STASH_LIKE logic

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Apr 19, 2013, 05:57 UTC
Message-ID
<CALkWK0m_Nt8SFdjGKWWHtBJ+HVsk095ukjZ0N=KBt5q+or5XFQ@mail.gmail.com>
In-Reply-To
<7vk3nz4h20.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> [...]

I'm curious. Why are you going back on what you said just one day ago? What changed?

In a previous email, you wrote:
Show 6 quoted lines
> You are free to try to think of a way to tighten the implemention to
> reject a random two-or-three parent merge commit that is not a
> product of "stash create".  People already have looked at this code
> since it was written, and didn't find a reasonable way to tighten it
> without triggering false negatives, so I wouldn't be surprised if
> anybody tried it again today and failed.
So, my patch is not a "reasonable" way to achieve this?
> When was the last time you tried to run "git stash apply next"?

My patch is not solving an end-user problem. Think of it as a source code comment: to answer the question "what kind of commit does stash create make?", the reader simple has to look at when IS_STASH_LIKE is set. It's helping make the source code clearer. Previously, IS_STASH_LIKE might as well have been named IS_MERGE_COMMIT, and nothing would've changed. The reader will wonder what IS_MERGE_COMMIT has to do with stashes, so we named it IS_STASH_LIKE. This is another minor improvement in the same spirit.

> Is it worth it?
Is it worth what?  What are we losing?
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 6 in “stash: tighten IS_STASH_LIKE logic”
  1. stash: tighten IS_STASH_LIKE logicRamkumar Ramachandra, Apr 18, 2013
  2. Junio C HamanoApr 18, 2013
  3. Ramkumar RamachandraApr 19, 2013
  4. Junio C HamanoApr 19, 2013
  5. Ramkumar RamachandraApr 19, 2013
  6. Junio C HamanoApr 19, 2013

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.