Optional
--abbrevShows the shortest prefix that is at least
Optional
--anchoredGenerates a diff using the "anchored diff" algorithm.
Optional
--binaryOutputs a binary diff.
Optional
--break-Breaks complete rewrite changes into pairs of delete and create.
Optional
--checkWarns if changes introduce conflict markers or whitespace errors.
Optional
--combined-Lists the file name from all parents.
Optional
--compact-Outputs a condensed summary of extended header information.
Optional
--cumulativeSynonym for --dirstat=cumulative.
Optional
--diff-Selects a diff algorithm.
Optional
--diff-Selects files by status.
Optional
--diff-Specifies the diff format for merge commits.
Optional
--dirstatGenerates a diffstat.
Optional
--dirstat-Generates a diffstat.
Optional
--dst-Shows the given destination prefix instead of "a/".
Optional
--exit-Makes the program exit with 1 if there were differences and 0 means no differences.
Optional
--ext-Allows an external diff helper to be executed.
Optional
--find-Detects and reports renames for each commit.
Optional
--find-Inspects unmodified files as candidates for the source of copy.
Optional
--find-Looks for differences that change the number of occurrences of the specified object.
Optional
--find-Detects and reports renames for each commit.
Optional
--full-Shows the full pre- and post-image blob object names on the "index" line.
Optional
--function-Shows whole function as context lines for each change.
Optional
--histogramGenerates a diff using the "histogram diff" algorithm.
Optional
--ignore-Ignores whitespace when comparing lines.
Optional
--ignore-Ignores changes whose lines are all blank.
Optional
--ignore-Ignores carriage-return at the end of line.
Optional
--ignore-Ignores changes whose all lines match regex.
Optional
--ignore-Ignores whitespace at the end of line.
Optional
--ignore-Ignores changes in the amount of whitespace.
Optional
--ignore-Ignores changes to submodules in the diff generation.
Optional
--indent-Enables the heuristic that shifts diff hunk boundaries to make patches easier to read.
Optional
--inter-Shows the context between diff hunks, up to the specified number of lines.
Optional
--irreversible-Omits the preimage for deletes.
Optional
--line-Prepends an additional prefix to every line of output.
Optional
--minimalSpends extra time to make sure the smallest possible diff is produced.
Optional
--name-Shows only the names of changed files.
Optional
--name-Shows only the names and status of changed files.
Optional
--no-Disable output of diffs for merge commits.
Optional
--no-Disallows external diff drivers.
Optional
--no-Disables the heuristic that shifts diff hunk boundaries to make patches easier to read.
Optional
--no-Suppresses diff output.
Optional
--no-Does not show any source or destination prefix.
Optional
--no-Countermands diff.relative.
Optional
--no-Does not use empty blobs as rename source.
Optional
--no-Disables rename detection.
Optional
--no-Disallows external text conversion filters to be run when comparing binary files.
Optional
--numstatSimilar to --stat, but shows number of added and deleted lines in decimal notation and pathname without abbreviation, to make it more machine friendly.
Optional
--outputOutputs to a specific file instead of stdout.
Optional
--output-Specifies the character used to indicate context lines in the generated patch.
Optional
--output-Specifies the character used to indicate new lines in the generated patch.
Optional
--output-Specifies the character used to indicate old lines in the generated patch.
Optional
--patchGenerates a patch.
Optional
--patch-Synonym for --patch --raw.
Optional
--patch-Synonym for --patch --stat.
Optional
--patienceGenerates a diff using the "patience diff" algorithm.
Optional
--pickaxe-Shows all the changes in that changeset.
Optional
--pickaxe-Treats the string given to -S as an extended POSIX regular expression to match.
Optional
--quietDisables all output of the program. Implies --exit-code.
Optional
--rawGenerates the diff in raw format.
Optional
--relativeMakes the output relative.
Optional
--rename-Uses empty blobs as rename source.
Optional
--shortstatOutputs only the last line of --stat.
Optional
--src-Shows the given source prefix instead of "a/".
Optional
--statGenerates a diffstat.
Optional
--submoduleSpecifies how differences in submodules are shown.
Optional
--summaryOutputs a condensed summary of extended header information.
Optional
--textTreats all files as text.
Optional
--textconvAllows external text conversion filters to be run when comparing binary files.
Optional
--unifiedGenerates diffs with the specified number of context lines.
Optional
--word-Shows a word diff.
Optional
--word-Specifies the regex to define a word.
Optional
-GLooks for differences whose patch text contains added/removed lines that match
Optional
-OControls the order in which files appear in the output.
Optional
-RSwaps two inputs.
Optional
-SLooks for differences that change the number of occurrences of the specified string.
Optional
-lPrevents the exhaustive portion of rename/copy detection from running if the number of source/destination files involved exceeds the specified number.
Optional
-zDoes not munge pathnames and uses NULs as output field terminators.
DiffOptions defines the supported options for the Git diff command.