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

[BUG?] git stash pop results in conflict

From
TMTim Mazid <timmazid@hotmail.com>
Date
Mar 24, 2010, 02:01 UTC
Message-ID
<SNT124-W41E7349234C70B82E8D6BFC4250@phx.gbl>
Hi,
 
I'm not sure if this is a bug or if it should be thus.
 
Basically, a 'git stash --keep-index' followed immediately by a 'git stash pop' (no changes made) will result in a conflict.
 
Steps to reproduce:
 
 
Put
 
"AAA
BBB
CCC"
 
into file 'test'
 
$ git add test
$ git commit -m "A"
 
Append lines
 
"DDD
EEE
FFF
GGG"
 
into file 'test'
 
$ git add -p
 
Press 'e' and remove the "FFF" and "GGG" files from the patch, to stage only the "DDD" and "EEE" files.
 
$ git stash --keep-index
$ git stash pop
 
CONFLICT
 
 
I hope that's clear enough.
 
Cheers,
Tim. 		 	   		  
_________________________________________________________________
Link all your email accounts and social updates with Hotmail. Find out now.
http://windowslive.ninemsn.com.au/oneinbox?ocid=T162MSN05A0710G
Next: Michael J Gruber
Message 1 of 2 in “[BUG?] git stash pop results in conflict”
  1. Tim MazidMar 24, 2010
  2. Michael J GruberMar 24, 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.