From: Salikh Zakirov <Salikh.Zakirov@Intel.com>
To: git@vger.kernel.org
Subject: align git diff a..b semantics with git log a..b
Date: Mon, 15 May 2006 12:41:35 +0400 [thread overview]
Message-ID: <44683EBF.9070307@Intel.com> (raw)
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!
reply other threads:[~2006-05-15 8:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=44683EBF.9070307@Intel.com \
--to=salikh.zakirov@intel.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.