* how to deal with conflicts after "git stash apply"?
@ 2007-10-21 22:32 Scott Parish
2007-10-21 22:40 ` Johannes Schindelin
0 siblings, 1 reply; 4+ messages in thread
From: Scott Parish @ 2007-10-21 22:32 UTC (permalink / raw)
To: git
How is the intended way to deal with "git stash apply" conflicts?
If i just edit the file and remove the conflict, "git diff" gives
some really messed up output. Documentation for other commands and
conflicts suggest "git commit" after cleaning up the conflict, or
"git add", but in the case of "stash apply" i'm not ready for a
commit yet, and "git add" keeps "git diff" from showing any output.
Thanks for any clarification
sRp
--
Scott Parish
http://srparish.net/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to deal with conflicts after "git stash apply"?
2007-10-21 22:32 how to deal with conflicts after "git stash apply"? Scott Parish
@ 2007-10-21 22:40 ` Johannes Schindelin
2007-10-22 4:26 ` Shawn O. Pearce
2007-10-22 4:39 ` Scott Parish
0 siblings, 2 replies; 4+ messages in thread
From: Johannes Schindelin @ 2007-10-21 22:40 UTC (permalink / raw)
To: Scott Parish; +Cc: git
Hi,
On Sun, 21 Oct 2007, Scott Parish wrote:
> How is the intended way to deal with "git stash apply" conflicts?
> If i just edit the file and remove the conflict, "git diff" gives
> some really messed up output. Documentation for other commands and
> conflicts suggest "git commit" after cleaning up the conflict, or
> "git add", but in the case of "stash apply" i'm not ready for a
> commit yet, and "git add" keeps "git diff" from showing any output.
You are probably seeing combined diffs.
This show not only the differences of the working tree relative to HEAD,
but also of the changes stored in the stash.
You should have a look into Documentation/diff-format.txt (section
"combined diff format") to learn more.
Hth,
Dscho
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to deal with conflicts after "git stash apply"?
2007-10-21 22:40 ` Johannes Schindelin
@ 2007-10-22 4:26 ` Shawn O. Pearce
2007-10-22 4:39 ` Scott Parish
1 sibling, 0 replies; 4+ messages in thread
From: Shawn O. Pearce @ 2007-10-22 4:26 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: Scott Parish, git
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> On Sun, 21 Oct 2007, Scott Parish wrote:
>
> > How is the intended way to deal with "git stash apply" conflicts?
> > If i just edit the file and remove the conflict, "git diff" gives
> > some really messed up output. Documentation for other commands and
> > conflicts suggest "git commit" after cleaning up the conflict, or
> > "git add", but in the case of "stash apply" i'm not ready for a
> > commit yet, and "git add" keeps "git diff" from showing any output.
>
> You are probably seeing combined diffs.
>
> This show not only the differences of the working tree relative to HEAD,
> but also of the changes stored in the stash.
The reason Scott is seeing a combined diff here is merge-recursive
left the different versions of the file in the higher order stages
of the index when it found conflicts during the apply. You need
to use git-add to stage the resolved file and replace the higher
order stages with just the normal stage 0.
--
Shawn.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to deal with conflicts after "git stash apply"?
2007-10-21 22:40 ` Johannes Schindelin
2007-10-22 4:26 ` Shawn O. Pearce
@ 2007-10-22 4:39 ` Scott Parish
1 sibling, 0 replies; 4+ messages in thread
From: Scott Parish @ 2007-10-22 4:39 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: git
> You should have a look into Documentation/diff-format.txt (section
> "combined diff format") to learn more.
Ah, thanks for the pointer; i hadn't realized that this wasn't
standard diff format. With this and what Shawn said, it all makes
sense now.
sRp
--
Scott Parish
http://srparish.net/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-22 4:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-21 22:32 how to deal with conflicts after "git stash apply"? Scott Parish
2007-10-21 22:40 ` Johannes Schindelin
2007-10-22 4:26 ` Shawn O. Pearce
2007-10-22 4:39 ` Scott Parish
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).