1-p:: 2 Generate patch (see section on generating patches) 3 4-u:: 5 Synonym for "-p". 6 7-z:: 8 \0 line termination on output 9 10--name-only:: 11 Show only names of changed files. 12 13--name-status:: 14 Show only names and status of changed files. 15 16--full-index:: 17 Instead of the first handful characters, show full 18 object name of pre- and post-image blob on the "index" 19 line when generating a patch format output. 20 21--abbrev:: 22 Instead of showing the full 40-byte hexadecimal object 23 name in diff-raw format output and diff-tree header 24 lines, show only handful prefix. This is independent of 25 --full-index option above, which controls the diff-patch 26 output format. 27 28-B:: 29 Break complete rewrite changes into pairs of delete and create. 30 31-M:: 32 Detect renames. 33 34-C:: 35 Detect copies as well as renames. 36 37--find-copies-harder:: 38 For performance reasons, by default, -C option finds copies only 39 if the original file of the copy was modified in the same 40 changeset. This flag makes the command 41 inspect unmodified files as candidates for the source of 42 copy. This is a very expensive operation for large 43 projects, so use it with caution. 44 45-l<num>:: 46 -M and -C options require O(n^2) processing time where n 47 is the number of potential rename/copy targets. This 48 option prevents rename/copy detection from running if 49 the number of rename/copy targets exceeds the specified 50 number. 51 52-S<string>:: 53 Look for differences that contain the change in <string>. 54 55--pickaxe-all:: 56 When -S finds a change, show all the changes in that 57 changeset, not just the files that contain the change 58 in <string>. 59 60-O<orderfile>:: 61 Output the patch in the order specified in the 62 <orderfile>, which has one shell glob pattern per line. 63 64-R:: 65 Swap two inputs; that is, show differences from index or 66 on-disk file to tree contents. 67 68For more detailed explanation on these common options, see also 69link:diffcore.html[diffcore documentation].