]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/git-diff-index.txt
builtin/diff-index: learn --merge-base
[thirdparty/git.git] / Documentation / git-diff-index.txt
index 25fe165f0014b087e8b87177dd8573b29fa75782..27acb31cbf26f6d842a7445324950f6dfc2b2e68 100644 (file)
@@ -9,7 +9,7 @@ git-diff-index - Compare a tree to the working tree or index
 SYNOPSIS
 --------
 [verse]
-'git diff-index' [-m] [--cached] [<common diff options>] <tree-ish> [<path>...]
+'git diff-index' [-m] [--cached] [--merge-base] [<common diff options>] <tree-ish> [<path>...]
 
 DESCRIPTION
 -----------
@@ -29,6 +29,11 @@ include::diff-options.txt[]
 --cached::
        Do not consider the on-disk file at all.
 
+--merge-base::
+       Instead of comparing <tree-ish> directly, use the merge base
+       between <tree-ish> and HEAD instead.  <tree-ish> must be a
+       commit.
+
 -m::
        By default, files recorded in the index but not checked
        out are reported as deleted.  This flag makes