Interface ShowOptions

ShowOptions defines the supported options for the Git show command.

Hierarchy

Properties

--abbrev?: null | string | number

Shows the shortest prefix that is at least hexdigits long that uniquely refers the object.

--abbrev-commit?: null

Shows a prefix that names the object uniquely. See also --no-abbrev-commit.

--anchored?: string | string[]

Generates a diff using the "anchored diff" algorithm.

--binary?: null

Outputs a binary diff.

--break-rewrites?: null | string

Breaks complete rewrite changes into pairs of delete and create.

--check?: null

Warns if changes introduce conflict markers or whitespace errors.

--children?: null

Prints the children of the commit.

--combined-all-paths?: null

Lists the file name from all parents.

--compact-summary?: null

Outputs a condensed summary of extended header information.

--cumulative?: null

Synonym for --dirstat=cumulative.

--date?: string

Specifies the date format for output.

--diff-algorithm?: string

Selects a diff algorithm.

--diff-filter?: string

Selects files by status.

--diff-merges?: string

Specifies the diff format for merge commits.

--dirstat?: null | string | string[]

Generates a diffstat.

--dirstat-by-file?: null | string | string[]

Generates a diffstat.

--dst-prefix?: string

Shows the given destination prefix instead of "a/".

--encoding?: string

Re-codes the commit log message in the specified encoding.

--expand-tabs?: null | string | number

Performs tab expansion. See also --no-expand-tabs.

--ext-diff?: null

Allows an external diff helper to be executed.

--find-copies?: null | string | number

Detects and reports renames for each commit.

--find-copies-harder?: null

Inspects unmodified files as candidates for the source of copy.

--find-object?: string

Looks for differences that change the number of occurrences of the specified object.

--find-renames?: null | string | number

Detects and reports renames for each commit.

--format?: string

Prints the commit logs using the supplied format string.

--full-index?: null

Shows the full pre- and post-image blob object names on the "index" line.

--function-context?: null

Shows whole function as context lines for each change.

--graph?: null

Draws a text-based graphical representation of the commit history on the left side of the output.

--histogram?: null

Generates a diff using the "histogram diff" algorithm.

--ignore-all-space?: null

Ignores whitespace when comparing lines.

--ignore-blank-lines?: null

Ignores changes whose lines are all blank.

--ignore-cr-at-eol?: null

Ignores carriage-return at the end of line.

--ignore-matching-lines?: string

Ignores changes whose all lines match regex.

--ignore-space-at-eol?: null

Ignores whitespace at the end of line.

--ignore-space-change?: null

Ignores changes in the amount of whitespace.

--ignore-submodules?: null | string

Ignores changes to submodules in the diff generation.

--indent-heuristic?: null

Enables the heuristic that shifts diff hunk boundaries to make patches easier to read.

--inter-hunk-context?: string | number

Shows the context between diff hunks, up to the specified number of lines.

--irreversible-delete?: null

Omits the preimage for deletes.

--left-right?: null

Marks which side of a symmetric difference a commit is reachable from.

--line-prefix?: string

Prepends an additional prefix to every line of output.

--minimal?: null

Spends extra time to make sure the smallest possible diff is produced.

--name-only?: null

Shows only the names of changed files.

--name-status?: null

Shows only the names and status of changed files.

--no-abbrev-commit?: null

Shows the full object name. See also --abbrev-commit.

--no-diff-merges?: null

Disable output of diffs for merge commits.

--no-expand-tabs?: null | number

The complement of --expand-tabs.

--no-ext-diff?: null

Disallows external diff drivers.

--no-indent-heuristic?: null

Disables the heuristic that shifts diff hunk boundaries to make patches easier to read.

--no-notes?: null

The complement of --notes.

--no-patch?: null

Suppresses diff output.

--no-prefix?: null

Does not show any source or destination prefix.

--no-relative?: null

Countermands diff.relative.

--no-rename-empty?: null

Does not use empty blobs as rename source.

--no-renames?: null

Disables rename detection.

--no-textconv?: null

Disallows external text conversion filters to be run when comparing binary files.

--notes?: null | string | string[]

Shows notes with an optional ref value to filter notes. See also --no-notes.

--numstat?: null

Similar to --stat, but shows number of added and deleted lines in decimal notation and pathname without abbreviation, to make it more machine friendly.

--oneline?: null

Shorthand for --pretty=oneline --abbrev-commit.

--output?: string

Outputs to a specific file instead of stdout.

--output-indicator-context?: string

Specifies the character used to indicate context lines in the generated patch.

--output-indicator-new?: string

Specifies the character used to indicate new lines in the generated patch.

--output-indicator-old?: string

Specifies the character used to indicate old lines in the generated patch.

--parents?: null

Prints the parents of the commit.

--patch?: null

Generates a patch.

--patch-with-raw?: null

Synonym for --patch --raw.

--patch-with-stat?: null

Synonym for --patch --stat.

--patience?: null

Generates a diff using the "patience diff" algorithm.

--pickaxe-all?: null

Shows all the changes in that changeset.

--pickaxe-regex?: null

Treats the string given to -S as an extended POSIX regular expression to match.

--raw?: null

Generates the diff in raw format.

--relative?: null | string

Makes the output relative.

--rename-empty?: null

Uses empty blobs as rename source.

--shortstat?: null

Outputs only the last line of --stat.

--show-linear-break?: null | string

Puts a barrier in between two consecutive commits that do not belong to a linear branch.

--show-signature?: null

Validitates signed commits.

--src-prefix?: string

Shows the given source prefix instead of "a/".

--stat?: null | string

Generates a diffstat.

--submodule?: null | string

Specifies how differences in submodules are shown.

--summary?: null

Outputs a condensed summary of extended header information.

--text?: null

Treats all files as text.

--textconv?: null

Allows external text conversion filters to be run when comparing binary files.

--unified?: string | number

Generates diffs with the specified number of context lines.

--word-diff?: null | string

Shows a word diff.

--word-diff-regex?: string

Specifies the regex to define a word.

-G?: string

Looks for differences whose patch text contains added/removed lines that match .

-O?: string

Controls the order in which files appear in the output.

-R?: null

Swaps two inputs.

-S?: string

Looks for differences that change the number of occurrences of the specified string.

-l?: string | number

Prevents the exhaustive portion of rename/copy detection from running if the number of source/destination files involved exceeds the specified number.

-z?: null

Does not munge pathnames and uses NULs as output field terminators.