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

Re: Fix recent 'unpack_trees()'-related changes breaking 'git stash'

From
SGSzeder Gábor <szeder@fzi.de>
Date
Mar 15, 2008, 11:36 UTC
Message-ID
<20080315113607.GB10921@elysium.homelinux.org>
In-Reply-To
<7v1w6cpox6.fsf@gitster.siamese.dyndns.org>
On Fri, Mar 14, 2008 at 09:54:45PM -0700, Junio C Hamano wrote:
Show 14 quoted lines
> It would be slightly simpler to write the above sequence like this:
> 
> 	w_tree=$( (
> 		rm -f "$TMP-index" &&
>                 git read-tree --index-output="$TMP-index" -m $i_tree &&
>                 GIT_INDEX_FILE="$TMP-index" &&
>                 export GIT_INDEX_FILE &&
>                 git add -u &&
>                 git write-tree &&
>                 rm -f "$TMP-index"
> 	) )
> 
> I think your fix would apply equally well if we rewrite stash to work like
> this.

Yes, with the above changes but without Linus' patch the bug is still present.

Best, Gábor

Previous: Junio C HamanoNext: Linus Torvalds
Message 6 of 8 in “recent 'unpack_trees()'-related changes break 'git stash'”
  1. SZEDER GáborMar 15, 2008
  2. Fix recent 'unpack_trees()'-related changes breaking 'git stash'Linus Torvalds, Mar 15, 2008
  3. Linus TorvaldsMar 15, 2008
  4. Szeder GáborMar 15, 2008
  5. Junio C HamanoMar 15, 2008
  6. Szeder GáborMar 15, 2008
  7. Linus TorvaldsMar 15, 2008
  8. git-stash: use git-read-tree --index-output optionしらいしななこ, Mar 30, 2008

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.