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

Re: [PATCH v3] stash: handle specifying stashes with spaces

From
Thomas Rast <tr@thomasrast.ch>
Date
Jan 7, 2014, 22:17 UTC
Message-ID
<87ob3nphc5.fsf@thomasrast.ch>
In-Reply-To
<xmqq7gabeiqo.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 12 quoted lines
> Øystein Walle <oystwa@gmail.com> writes:
>
>> +	git stash &&
>> +	test_tick &&
>> +	echo cow > file &&
>> +	git stash &&
>> +	git stash apply "stash@{Thu Apr 7 15:17:13 2005 -0700}" &&
>
> This is brittle.  If new tests are added before this, the test_tick
> will give you different timestamp and this test will start failing.
>
> Perhaps grab the timestamp out of the stash that was created [...]
Hmm, now that I stare at this, why not simply use something like
  git stash apply "stash@{ 0 }"

It seems to refer to the same as stash@{0} as one would expect, while still triggering the bug with unpatched git-stash.

-- 
Thomas Rast
tr@thomasrast.ch
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 6 in “stash: handle specifying stashes with spaces”
  1. stash: handle specifying stashes with spacesØystein Walle, Jan 7, 2014
  2. Junio C HamanoJan 7, 2014
  3. Thomas RastJan 7, 2014
  4. Junio C HamanoJan 7, 2014
  5. Øystein WalleJan 8, 2014
  6. Junio C HamanoJan 9, 2014

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.