git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Inconsistency in specifying commit & path for git diff

From
AEArthur Etchells <adetchells@gmail.com>
Date
Oct 9, 2012, 19:43 UTC
Message-ID
<50747E48.3060203@gmail.com>

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.
Next: Andreas Schwab
Message 1 of 3 in “Inconsistency in specifying commit & path for git diff”
  1. Arthur EtchellsOct 9, 2012
  2. Andreas SchwabOct 9, 2012
  3. Junio C HamanoOct 9, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.