GITK(1) | Git Manual | GITK(1) |
gitk [<options>] [<revision range>] [--] [<path>...]
gitk generally only understands options with arguments in the sticked form (see gitcli(7)) due to limitations in the command-line parser.
--all
--branches[=<pattern>], --tags[=<pattern>], --remotes[=<pattern>]
--since=<date>
--until=<date>
--date-order
--merge
--left-right
--full-history
--simplify-merges
--ancestry-path
-L<start>,<end>:<file>, -L:<funcname>:<file>
<start> and <end> can take one of these forms:
If <start> or <end> is a number, it specifies an absolute line number (lines count from 1).
This form will use the first line matching the given POSIX regex. If <start> is a regex, it will search from the end of the previous -L range, if any, otherwise from the start of file. If <start> is ^/regex/, it will search from the start of file. If <end> is a regex, it will search starting at the line given by <start>.
This is only valid for <end> and will specify a number of lines before or after the line given by <start>.
If :<funcname> is given in place of <start> and <end>, it is a regular expression that denotes the range from the first funcname line that matches <funcname>, up to the next funcname line. :<funcname> searches from the end of the previous -L range, if any, otherwise from the start of file. ^:<funcname> searches from the start of file. The function names are determined in the same way as git diff works out patch hunk headers (see Defining a custom hunk-header in gitattributes(5)).
<revision range>
<path>...
--select-commit=<ref>
gitk --since="2 weeks ago" -- gitk
gitk --max-count=100 --all -- Makefile
If neither of the above exist then $XDG_CONFIG_HOME/git/gitk is created and used by default. If $XDG_CONFIG_HOME is not set it defaults to $HOME/.config in all cases.
gitk is actually maintained as an independent project, but stable versions are distributed as part of the Git suite for the convenience of end users.
gitk-git/ comes from Paul Mackerras’s gitk project:
git://ozlabs.org/~paulus/gitk
tig(1)
04/24/2023 | Git 2.40.1 |