All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: Dmitry Potapov <dpotapov@gmail.com>
Cc: Govind Salinas <blix@sophiasuchtig.com>,
	Git Mailing List <git@vger.kernel.org>
Subject: Re: [PYRITE] Status update and call for information.
Date: Sun, 25 May 2008 00:23:27 +0200	[thread overview]
Message-ID: <200805250023.27440.jnareb@gmail.com> (raw)
In-Reply-To: <20080524195753.GB3745@dpotapov.dyndns.org>

On Sat, 24 May 2008, Dmitry Potapov wrote:
> On Fri, May 23, 2008 at 06:07:34PM -0700, Jakub Narebski wrote:
>> 
>> On the other hand the a..b and a...b notation is matter of convenience
>> (it is easier to use than "b ^a" or "a b --not $(git merge-base a
>> b)"); perhaps allowing a..b and a...b notation for git-diff was an
>> error... but it makes copy'n'paste easier...
> 
> I believe that the error was how these operations were defined for diff.
> I would rather expect to 'git diff a..b' to produce the accumulative
> patch of 'git log -p a..b', but currently 'git diff a..b' is equivalent
> of 'git diff a b', and this is redundant and confusing. 

I think "git diff a..b" and "git diff a...b" (which is cute hack) were
created to allow copy'n'paste from git-fetch result messages, not only
to git-log but also for git-diff; note that in case of git-fetch
messages a..b is always fast-forward (a = merge-base a b).

I think that both solutions for "git diff a..b", be it "git diff a b"
or "git diff $(git merge-base a b) b" can be argued for, soe historical
reasons (a...b was added later) and backward compatibility wins.

> As to 'git diff a...b', it would be nice if it showed three way diff.
> At least, it is how I would define them if I were writing some
> front-end. 

At least "git diff --cc a...b" and "git diff -c a...b", i.e. diff as
if there were a merge... although now that I look at it it seems to
be more difficult than on first glance.

-- 
Jakub Narebski
Poland

      reply	other threads:[~2008-05-24 22:24 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-23  6:18 [PYRITE] Status update and call for information Govind Salinas
2008-05-23  6:45 ` Karl Hasselström
2008-05-23 12:36   ` Govind Salinas
2008-05-23 13:12     ` Karl Hasselström
2008-05-24  1:07 ` Jakub Narebski
2008-05-24  5:16   ` Govind Salinas
2008-05-24  8:41     ` Jakub Narebski
2008-05-24 17:43       ` Govind Salinas
2008-05-24 23:27         ` Jakub Narebski
2008-05-25  9:23         ` Jan Krueger
2008-05-25 18:22           ` Govind Salinas
2008-05-24 19:59     ` Dmitry Potapov
2008-05-24 20:47       ` Jakub Narebski
2008-05-24 21:50         ` Govind Salinas
2008-05-25 11:35           ` Jakub Narebski
2008-05-25 19:03             ` Govind Salinas
2008-05-24 19:57   ` Dmitry Potapov
2008-05-24 22:23     ` Jakub Narebski [this message]

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=200805250023.27440.jnareb@gmail.com \
    --to=jnareb@gmail.com \
    --cc=blix@sophiasuchtig.com \
    --cc=dpotapov@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.