GIT 0.99.9j aka 1.0rc3
[git/jrn.git] / Documentation / diff-options.txt
blob6b496ede2550cf573a3a7ce37db908e6b3ab631e
1 -p::
2         Generate patch (see section on generating patches)
4 -u::
5         Synonym for "-p".
7 -z::
8         \0 line termination on output
10 --name-only::
11         Show only names of changed files.
13 --name-status::
14         Show only names and status of changed files.
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.     
21 -B::
22         Break complete rewrite changes into pairs of delete and create.
24 -M::
25         Detect renames.
27 -C::
28         Detect copies as well as renames.
30 --find-copies-harder::
31         For performance reasons, by default, -C option finds copies only 
32         if the original file of the copy was modified in the same 
33         changeset.  This flag makes the command
34         inspect unmodified files as candidates for the source of
35         copy.  This is a very expensive operation for large
36         projects, so use it with caution.
38 -l<num>::
39         -M and -C options require O(n^2) processing time where n
40         is the number of potential rename/copy targets.  This
41         option prevents rename/copy detection from running if
42         the number of rename/copy targets exceeds the specified
43         number.
45 -S<string>::
46         Look for differences that contain the change in <string>.
48 --pickaxe-all::
49         When -S finds a change, show all the changes in that
50         changeset, not just the files that contain the change
51         in <string>.
53 -O<orderfile>::
54         Output the patch in the order specified in the
55         <orderfile>, which has one shell glob pattern per line.
57 -R::
58         Swap two inputs; that is, show differences from index or
59         on-disk file to tree contents.
61 For more detailed explanation on these common options, see also
62 link:diffcore.html[diffcore documentation].