8eef86e474aee14bb6743f0f81d6aa802ef8a621
[git.git] / Documentation / diff-options.txt
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 -B::
17         Break complete rewrite changes into pairs of delete and create.
18
19 -M::
20         Detect renames.
21
22 -C::
23         Detect copies as well as renames.
24
25 --find-copies-harder::
26         For performance reasons, by default, -C option finds copies only 
27         if the original file of the copy was modified in the same 
28         changeset.  This flag makes the command
29         inspect unmodified files as candidates for the source of
30         copy.  This is a very expensive operation for large
31         projects, so use it with caution.
32
33 -l<num>::
34         -M and -C options require O(n^2) processing time where n
35         is the number of potential rename/copy targets.  This
36         option prevents rename/copy detection from running if
37         the number of rename/copy targets exceeds the specified
38         number.
39
40 -S<string>::
41         Look for differences that contain the change in <string>.
42
43 --pickaxe-all::
44         When -S finds a change, show all the changes in that
45         changeset, not just the files that contain the change
46         in <string>.
47
48 -O<orderfile>::
49         Output the patch in the order specified in the
50         <orderfile>, which has one shell glob pattern per line.
51
52 -R::
53         Swap two inputs; that is, show differences from index or
54         on-disk file to tree contents.
55
56 For more detailed explanation on these common options, see also
57 link:diffcore.html[diffcore documentation].