Interface LogOptions

LogOptions defines the supported options for the Git log command.

Hierarchy

Properties

--abbrev? --abbrev-commit? --all? --all-match? --alternate-refs? --ancestry-path? --anchored? --author? --author-date-order? --basic-regexp? --binary? --bisect? --boundary? --branches? --break-rewrites? --check? --cherry? --cherry-mark? --cherry-pick? --children? --combined-all-paths? --committer? --compact-summary? --cumulative? --date? --date-order? --decorate? --decorate-refs? --decorate-refs-exclude? --dense? --diff-algorithm? --diff-filter? --diff-merges? --dirstat? --dirstat-by-file? --dst-prefix? --encoding? --exclude? --exclude-first-parent-only? --expand-tabs? --ext-diff? --extended-regexp? --find-copies? --find-copies-harder? --find-object? --find-renames? --first-parent? --fixed-strings? --follow? --format? --full-diff? --full-history? --full-index? --function-context? --glob? --graph? --grep? --grep-reflog? --histogram? --ignore-all-space? --ignore-blank-lines? --ignore-cr-at-eol? --ignore-matching-lines? --ignore-missing? --ignore-space-at-eol? --ignore-space-change? --ignore-submodules? --indent-heuristic? --inter-hunk-context? --invert-grep? --irreversible-delete? --left-only? --left-right? --line-prefix? --log-size? --mailmap? --max-count? --max-parents? --merge? --merges? --min-parents? --minimal? --name-only? --name-status? --no-abbrev-commit? --no-decorate? --no-diff-merges? --no-expand-tabs? --no-ext-diff? --no-indent-heuristic? --no-mailmap? --no-max-parents? --no-merges? --no-min-parents? --no-notes? --no-patch? --no-prefix? --no-relative? --no-rename-empty? --no-renames? --no-textconv? --no-walk? --notes? --numstat? --oneline? --output? --output-indicator-context? --output-indicator-new? --output-indicator-old? --parents? --patch? --patch-with-raw? --patch-with-stat? --patience? --pickaxe-all? --pickaxe-regex? --raw? --reflog? --regexp-ignore-case? --relative? --remotes? --remove-empty? --rename-empty? --reverse? --right-only? --shortstat? --show-linear-break? --show-pulls? --show-signature? --simplify-by-decoration? --simplify-merges? --since? --single-worktree? --skip? --source? --sparse? --src-prefix? --stat? --submodule? --summary? --tags? --text? --textconv? --topo-order? --unified? --until? --walk-reflogs? --word-diff? --word-diff-regex? -G? -L? -O? -R? -S? -l? -z?

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.

--all?: null

Includes all the refs in refs/, along with HEAD.

--all-match?: null

Limits the commits those matching all specified --grep expressions.

--alternate-refs?: null

Includes all the objects mentioned as ref tips of alternate repositories.

--ancestry-path?: null

Displays commits that are both descendants of commit1, and ancestors of commit2 when given a range of commits.

--anchored?: string | string[]

Generates a diff using the "anchored diff" algorithm.

--author?: string | string[]

Limits the commits those with author header lines matching the specified regular expression.

--author-date-order?: null

Shows no parents before all of its children are shown, but otherwise shows commits in the author timestamp order.

--basic-regexp?: null

Considers limiting patterns to be basic regular expressions; this is the default.

--binary?: null

Outputs a binary diff.

--bisect?: null

Pretends as if the bad bisection ref refs/bisect/bad was listed and as if it was followed by --not and the good bisection refs refs/bisect/good-* on the command line.

--boundary?: null

Outputs excluded boundary commits.

--branches?: string

Includes all the refs in refs/heads.

--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.

--cherry?: null

A synonym for --right-only --cherry-mark --no-merges.

--cherry-mark?: null

Like --cherry-pick but marks equivalent commits with = rather than omitting them, and inequivalent ones with +.

--cherry-pick?: null

Omits any commit that introduces the same change as another commit on the “other side” when the set of commits are limited with symmetric difference.

--children?: null

Prints the children of the commit.

--combined-all-paths?: null

Lists the file name from all parents.

--committer?: string | string[]

Limits the commits to those with committer header lines matching the specified regular expression.

--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.

--date-order?: null

Shows no parents before all of its children are shown, but otherwise shows commits in the commit timestamp order.

--decorate?: null | string

Prints the ref names of any commits. See also --no-decorate.

--decorate-refs?: string

Overrides a match in log.excludeDecoration. See also --decorate-refs-exclude.

--decorate-refs-exclude?: string

Specifies the refs to exclude. See also --decorate-refs.

--dense?: null

Shows only the selected commits, plus some to have a meaningful history.

--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.

--exclude?: string | string[]

Excludes all the refs matching the specified pattern.

--exclude-first-parent-only?: null

Follows only the first parent commit upon seeing a merge commit.

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

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

--ext-diff?: null

Allows an external diff helper to be executed.

--extended-regexp?: null

Considers limiting patterns to be extended regular expressions.

--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.

--first-parent?: null

Follows only the first parent commit upon seeing a merge commit.

--fixed-strings?: null

Considers limiting patterns to be fized strings, not reguar expresions.

--follow?: null

Lists the history of a file beyond renames.

--format?: string

Prints the commit logs using the supplied format string.

--full-diff?: null

Shows the full diff for commits that touch the specified paths.

--full-history?: null

Does not prune history.

--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.

--glob?: string

Includes all the refs matching the specified pattern.

--graph?: null

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

--grep?: string | string[]

Limits the commits those with log messages matching the specified regular expression.

--grep-reflog?: string | string[]

Limits the commits those with reflog matching the specified regular expression.

--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-missing?: null

Ignores invalid object names.

--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.

--invert-grep?: null

Limits the commits those not matching --grep expressions.

--irreversible-delete?: null

Omits the preimage for deletes.

--left-only?: null

Lists only commits on the left side of a symmetric difference. See also --right-only.

--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.

--log-size?: null

Includes a line “log size ” in the output for each commit.

--mailmap?: null

Uses the mailmap file to map author and committer names and email addresses to canonical real names and email addresses. See also --no-mailmap.

--max-count?: string | number

Limits the number of commits to the specified number.

--max-parents?: string | number

Limits the number of commits to those with at most the specified number of parents. See also --no-max-parents.

--merge?: null

After a failed merge, show refs that touch files having a conflict and don’t exist on all heads to merge.

--merges?: null

Prints only merge commits. See also --no-merges.

--min-parents?: string | number

Limits the number of commits to those with at least the specified number of parents.

--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 --no-abbrev-commit.

--no-decorate?: null

The complement of --decorate.

--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-mailmap?: null

The complement of --no-mailmap.

--no-max-parents?: null

The complement of --max-parents.

--no-merges?: null

Does not print merge commits. See also --merges.

--no-min-parents?: null

The complement of --min-parents.

--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.

--no-walk?: null | string

Shows the given commits, but does not traverse their ancestors.

--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.

--reflog?: null

Includes all the objects mentioned by reflogs.

--regexp-ignore-case?: null

Matches regular expression limiting patterns without regard to case.

--relative?: null | string

Makes the output relative.

--remotes?: string

Includes all the refs in refs/remotes.

--remove-empty?: null

Stops when a given path disappears from the tree.

--rename-empty?: null

Uses empty blobs as rename source.

--reverse?: null

Shows all commits in reverse order.

--right-only?: null

Lists only commits on the right side of a symmetric difference. See also --left-only.

--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-pulls?: null

Includes any merge commits that are not TREESAME to the first parent but are TREESAME to a later parent.

--show-signature?: null

Validitates signed commits.

--simplify-by-decoration?: null

Select commits referred by some branch or tag.

--simplify-merges?: null

Removes some needless merges from the resulting history.

--since?: string | Date

Shows commits after the specified timestamp. Relative dates, such as yesterday, may be used. See also --until.

--single-worktree?: null

Examines the current working tree only.

--skip?: string | number

Skips number commits before starting.

--source?: null

Prints ref name given on the command line by which each commit was reached.

--sparse?: null

Shows all commits in the simplified history.

--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.

--tags?: string

Includes all the refs in refs/tags.

--text?: null

Treats all files as text.

--textconv?: null

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

--topo-order?: null

Shows no parents before all of its children are shown, and avoids showing commits on multiple lines of history intermixed.

--unified?: string | number

Generates diffs with the specified number of context lines.

--until?: string | Date

Shows commits before the specified timestamp. Relative dates, such as yesterday, may be used. See also --since.

--walk-reflogs?: null

Walks reflog entries from the most recent one to older ones.

--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 .

-L?: string

Traces the evolution within the specified file.

-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.