git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* align git diff a..b semantics with git log a..b
@ 2006-05-15  8:41 Salikh Zakirov
  0 siblings, 0 replies; only message in thread
From: Salikh Zakirov @ 2006-05-15  8:41 UTC (permalink / raw)
  To: git

Hi,

Currently, git-diff accepts

	git-diff A..B

syntax, and the output seems to be equivalent of 'git-diff A B'.

IMHO, this conflicts with A..B semantics defined for git-log family of commands.
Consider following tree

O--X--Y--A1--A2  (a)
       \
        B1--B2  (b)

The command 'git log a..b' will show B1,B2, so I would find it
intuitive (and useful) to have 'git diff a..b' show B1+B2,
rather than -A2-A1+B1+B2.

So, I suggest to change semantics of 'git diff a..b'
to 'git diff `git-merge-base a b` b'.

I could contribute the documentation change if the idea is accepted and implemented.

Thanks a lot!

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-05-15  8:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-15  8:41 align git diff a..b semantics with git log a..b Salikh Zakirov

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).