git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git stash and manually edited chunks
@ 2010-11-01  7:27 Olivier Verdier
  2010-11-01 16:58 ` Matthieu Moy
  0 siblings, 1 reply; 6+ messages in thread
From: Olivier Verdier @ 2010-11-01  7:27 UTC (permalink / raw)
  To: git

Hi!
I asked a question on stackoverflow
(http://stackoverflow.com/questions/4058372/git-stash-and-edited-chunks)
and someone suggested it might be a bug...
For convenience, I reproduce the question here:

 I occasionally have the following problem, which is reproduced by the
following sequence of commands:

* git add -p my_file
* I edit a chunk *manually* (using e)
* git stash --keep-index
* git stash pop

Now the problem occurs: the file my_file is now considered as
conflicted, and git has completely messed with my edited chunk, so I
have to edit the file, remove the merge marks, and run git add my_file
followed by git reset HEAD

I'm puzzled because this happens only when editing a chunk manually. I
don't see how this should make any difference at all.

I'm using version 1.7.3.1 on Mac OS X.

Thanks!!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-11-03 10:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-01  7:27 git stash and manually edited chunks Olivier Verdier
2010-11-01 16:58 ` Matthieu Moy
2010-11-02  8:37   ` Olivier Verdier
2010-11-02  9:02     ` Matthieu Moy
2010-11-03  3:06   ` Gavin Guo
2010-11-03 10:53     ` Matthieu Moy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).