All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arthur Etchells <adetchells@gmail.com>
To: git@vger.kernel.org
Cc: Arthur Etchells <adetchells@gmail.com>
Subject: Inconsistency in specifying commit & path for git diff
Date: Tue, 09 Oct 2012 15:43:04 -0400	[thread overview]
Message-ID: <50747E48.3060203@gmail.com> (raw)

git diff <commit>..<commit>
and
git diff <commit> <commit>
both succeed

however
git diff <commit>:<path>..<commit>:<path>
fails while
git diff <commit>:<path> <commit>:<path>
succeeds

OS X 10.7.5
git version 1.7.9.1

Reproduced by another user:
http://stackoverflow.com/questions/12805004/git-cherry-pick-creates-blobs-not-commits#comment17319876_12805004

It seems logical to support the '..' syntax in both for consistency.

             reply	other threads:[~2012-10-09 19:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-09 19:43 Arthur Etchells [this message]
2012-10-09 20:37 ` Inconsistency in specifying commit & path for git diff Andreas Schwab
2012-10-09 21:03 ` Junio C Hamano

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=50747E48.3060203@gmail.com \
    --to=adetchells@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.