Thread (14 messages) flat view 14 messages, 6 authors, 2016-06-15

Re: Undocumented git-diff syntax

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:49:45

Yann Dirson [off-list ref] writes:
That said, this two-path construct would surely deserve its own
synopsis.
Something like this?  Just kidding...


 SYNOPSIS
 --------
+[verse]
 'git diff' [<common diff options>] <commit>{0,2} [--] [<path>...]
+'git diff' [<common diff options>] <tree-ish> <tree-ish> [--] [<path>...]
+'git diff' [<common diff options>] <blob-or-path> <blob-or-path>

Possibly that <tree-ish> can be also a <directory> (on filesystem).

You can e.g. use

  git diff HEAD:git-gui/ 00e9de7^^
           ^^^^^^^^^^^^^ ~~~~~~~~~
           \-- tree       \-- commit (in subtree-merged history)

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help