From: Olivier Verdier <zelbier@gmail.com>
To: git@vger.kernel.org
Subject: git stash and manually edited chunks
Date: Mon, 1 Nov 2010 08:27:04 +0100 [thread overview]
Message-ID: <AANLkTik6esqP2EkA6SFmfS0zdokG1iTKXqivA2wnpq=9@mail.gmail.com> (raw)
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!!
next reply other threads:[~2010-11-01 7:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-01 7:27 Olivier Verdier [this message]
2010-11-01 16:58 ` git stash and manually edited chunks 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTik6esqP2EkA6SFmfS0zdokG1iTKXqivA2wnpq=9@mail.gmail.com' \
--to=zelbier@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).