* StGIT and conflicts
@ 2007-05-24 16:40 Karl Hasselström
2007-05-25 10:00 ` Catalin Marinas
0 siblings, 1 reply; 3+ messages in thread
From: Karl Hasselström @ 2007-05-24 16:40 UTC (permalink / raw)
To: Catalin Marinas, Yann Dirson; +Cc: git
The current behavior of StGIT is to not use the index for conflicts
like git does. What advantages does this have that are great enough to
motivate a deviation from the git behavior?
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: StGIT and conflicts
2007-05-24 16:40 StGIT and conflicts Karl Hasselström
@ 2007-05-25 10:00 ` Catalin Marinas
2007-05-25 12:45 ` Karl Hasselström
0 siblings, 1 reply; 3+ messages in thread
From: Catalin Marinas @ 2007-05-25 10:00 UTC (permalink / raw)
To: Karl Hasselström; +Cc: Yann Dirson, git
On 24/05/07, Karl Hasselström <kha@treskal.com> wrote:
> The current behavior of StGIT is to not use the index for conflicts
> like git does. What advantages does this have that are great enough to
> motivate a deviation from the git behavior?
I don't think there are any advantages in deviating from the git
behaviour, only that when I first implementing it, git didn't have any
smarter behaviour and I used diff3 (or other external merger, which
can be used right now as well).
I'm not sure if git-diff still works when there are conflicts in the
index. The current stg behaviour is to reset the index to the base of
the patch and a stg diff would show the diff (including the config
markers) to the base. I find this quite handy.
--
Catalin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: StGIT and conflicts
2007-05-25 10:00 ` Catalin Marinas
@ 2007-05-25 12:45 ` Karl Hasselström
0 siblings, 0 replies; 3+ messages in thread
From: Karl Hasselström @ 2007-05-25 12:45 UTC (permalink / raw)
To: Catalin Marinas; +Cc: Yann Dirson, git
On 2007-05-25 11:00:33 +0100, Catalin Marinas wrote:
> On 24/05/07, Karl Hasselström <kha@treskal.com> wrote:
>
> > The current behavior of StGIT is to not use the index for
> > conflicts like git does. What advantages does this have that are
> > great enough to motivate a deviation from the git behavior?
>
> I don't think there are any advantages in deviating from the git
> behaviour, only that when I first implementing it, git didn't have
> any smarter behaviour and I used diff3 (or other external merger,
> which can be used right now as well).
>
> I'm not sure if git-diff still works when there are conflicts in the
> index. The current stg behaviour is to reset the index to the base
> of the patch and a stg diff would show the diff (including the
> config markers) to the base. I find this quite handy.
To be honest, I'm not very well versed in how git handles merge
conflicts -- with all the nontrivial projects I touch, I use StGIT for
everything that can conflict. :-) Grepping for "conflict" in the user
manual brings up a very good explanation, though; and to answer your
question: it seems to work very well indeed, surprise surprise. You
can make the diff show anything you want, including between the patch
base and the working dir. Though, as the manual points out, the most
important view is probably between index and working tree, which shows
you just the not-yet-fixed conflicts.
Step one would be to simply stop messing with the index after merges,
and just let "stg resolved" mean "git add".
Step two (somewhat more ambitious) might be to stop trying to hide the
index, by providing a flag to "stg refresh" to make it refresh only
what's in the index, and not everything -- that is, to make it do what
"git commit" does when _not_ given the -a flag. And once we stop
hiding the index, there's no point in having StGIT commands to do
things like add, remove, and so on -- we could just use what git
provides.
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-05-25 11:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-24 16:40 StGIT and conflicts Karl Hasselström
2007-05-25 10:00 ` Catalin Marinas
2007-05-25 12:45 ` Karl Hasselström
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).