[PATCH] Rewrite ls-tree to behave more like "/bin/ls -a"
[gitweb.git] / Documentation / git-diff-tree.txt
index ff7f25f3f4b94c246e94872746378636c3d73922..77b1fb1799870ed6017f452b26ea940be05d4036 100644 (file)
@@ -9,7 +9,7 @@ git-diff-tree - Compares the content and mode of blobs found via two tree object
 
 SYNOPSIS
 --------
-'git-diff-tree' [-p] [-r] [-z] [--stdin] [-m] [-s] [-v] <tree-ish> <tree-ish> [<pattern>]\*
+'git-diff-tree' [-p] [-r] [-z] [--stdin] [-M] [-R] [-C] [-S<string>] [-m] [-s] [-v] [-t] <tree-ish> <tree-ish> [<pattern>]\*
 
 DESCRIPTION
 -----------
@@ -33,12 +33,31 @@ OPTIONS
        generate patch (see section on generating patches).  For
        git-diff-tree, this flag implies '-r' as well.
 
+-M::
+       Detect renames.
+
+-C::
+       Detect copies as well as renames.
+
+-R::
+       Output diff in reverse.
+
+-S<string>::
+       Look for differences that contains the change in <string>.
+
 -r::
        recurse
 
+-t::
+       show tree entry itself as well as subtrees.  Implies -r.
+
 -z::
        \0 line termination on output
 
+--root::
+       When '--root' is specified the initial commit will be showed as a big
+       creation event. This is equivalent to a diff against the NULL tree.
+
 --stdin::
        When '--stdin' is specified, the command does not take
        <tree-ish> arguments from the command line.  Instead, it