7 git-diff-stages - Compares content and mode of blobs between stages in an unmerged index file.
12 'git-diff-stages' [-p] [-r] [-z] [-R] [-B] [-M] [-C] [--find-copies-harder] [-O<orderfile>] [-S<string>] [--pickaxe-all] <stage1> <stage2> [<path>...]
16 Compares the content and mode of the blobs in two stages in an
22 The stage number to be compared.
25 Generate patch (see section on generating patches)
28 This flag does not mean anything. It is there only to match
29 "git-diff-tree". Unlike "git-diff-tree", "git-diff-stages"
30 always looks at all the subdirectories.
33 \0 line termination on output
36 Break complete rewrite changes into pairs of delete and create.
42 Detect copies as well as renames.
44 --find-copies-harder::
45 By default, -C option finds copies only if the original
46 file of the copy was modified in the same changeset for
47 performance reasons. This flag makes the command
48 inspect unmodified files as candidates for the source of
49 copy. This is a very expensive operation for large
50 projects, so use it with caution.
53 Look for differences that contains the change in <string>.
56 When -S finds a change, show all the changes in that
57 changeset, not just the files that contains the change
61 Output the patch in the order specified in the
62 <orderfile>, which has one shell glob pattern per line.
65 Swap two inputs; that is, show differences from <stage2> to
70 include::diff-format.txt[]
75 Written by Junio C Hamano <junkio@cox.net>
79 Documentation by Junio C Hamano.
83 Part of the link:git.html[git] suite