X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Documentation%2Fdiff-options.txt;h=2a0275eeda19b7af50e22f0709e6a31afee10b5e;hb=070879ca93a7d358086f4c8aff4553493dcb9210;hp=6b496ede2550cf573a3a7ce37db908e6b3ab631e;hpb=36d277c72d90d32f99616072b64a2652248f5264;p=git.git diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt index 6b496ede..2a0275ee 100644 --- a/Documentation/diff-options.txt +++ b/Documentation/diff-options.txt @@ -18,6 +18,14 @@ object name of pre- and post-image blob on the "index" line when generating a patch format output. +--abbrev[=]:: + Instead of showing the full 40-byte hexadecimal object + name in diff-raw format output and diff-tree header + lines, show only handful hexdigits prefix. This is + independent of --full-index option above, which controls + the diff-patch output format. Non default number of + digits can be specified with --abbrev=. + -B:: Break complete rewrite changes into pairs of delete and create. @@ -27,6 +35,17 @@ -C:: Detect copies as well as renames. +--diff-filter=[ACDMRTUXB*]:: + Select only files that are Added (`A`), Copied (`C`), + Deleted (`D`), Modified (`M`), Renamed (`R`), have their + type (mode) changed (`T`), are Unmerged (`U`), are + Unknown (`X`), or have had their pairing Broken (`B`). + Any combination of the filter characters may be used. + When `*` (All-or-none) is added to the combination, all + paths are selected if there is any file that matches + other criteria in the comparison; if there is no file + that matches other criteria, nothing is selected. + --find-copies-harder:: For performance reasons, by default, -C option finds copies only if the original file of the copy was modified in the same