3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
7 .\" Source: Git 2.35.1.225.ge2ac9141e6
10 .TH "GITK" "1" "02/17/2022" "Git 2\&.35\&.1\&.225\&.ge2ac91" "Git Manual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 gitk \- The Git repository browser
35 \fIgitk\fR [<options>] [<revision range>] [\-\-] [<path>\&...]
40 Displays changes in a repository or a selected set of commits\&. This includes visualizing the commit graph, showing information related to each commit, and the files in the trees of each revision\&.
43 To control which revisions to show, gitk supports most options applicable to the \fIgit rev\-list\fR command\&. It also supports a few options applicable to the \fIgit diff\-*\fR commands to control how the changes each commit introduces are shown\&. Finally, it supports some gitk\-specific options\&.
45 gitk generally only understands options with arguments in the \fIsticked\fR form (see \fBgitcli\fR(7)) due to limitations in the command\-line parser\&.
46 .SS "rev\-list options and arguments"
48 This manual page describes only the most frequently used options\&. See \fBgit-rev-list\fR(1) for a complete list\&.
52 Show all refs (branches, tags, etc\&.)\&.
55 \-\-branches[=<pattern>], \-\-tags[=<pattern>], \-\-remotes[=<pattern>]
57 Pretend as if all the branches (tags, remote branches, resp\&.) are listed on the command line as
60 is given, limit refs to ones matching given shell glob\&. If pattern lacks
65 at the end is implied\&.
70 Show commits more recent than a specific date\&.
75 Show commits older than a specific date\&.
80 Sort commits by date when possible\&.
85 After an attempt to merge stops with conflicts, show the commits on the history between two branches (i\&.e\&. the HEAD and the MERGE_HEAD) that modify the conflicted files and do not exist on all the heads being merged\&.
90 Mark which side of a symmetric difference a commit is reachable from\&. Commits from the left side are prefixed with a
92 symbol and those from the right with a
99 When filtering history with
100 \fI<path>\&...\fR, does not prune some history\&. (See "History simplification" in
102 for a more detailed explanation\&.)
108 \fB\-\-full\-history\fR
109 to remove some needless merges from the resulting history, as there are no selected commits contributing to this merge\&. (See "History simplification" in
111 for a more detailed explanation\&.)
116 When given a range of commits to display (e\&.g\&.
117 \fIcommit1\&.\&.commit2\fR
119 \fIcommit2 ^commit1\fR), only display commits that exist directly on the ancestry chain between the
122 \fIcommit2\fR, i\&.e\&. commits that are both descendants of
123 \fIcommit1\fR, and ancestors of
124 \fIcommit2\fR\&. (See "History simplification" in
126 for a more detailed explanation\&.)
129 \-L<start>,<end>:<file>, \-L:<funcname>:<file>
131 Trace the evolution of the line range given by
132 \fI<start>,<end>\fR, or by the function name regex
133 \fI<funcname>\fR, within the
134 \fI<file>\fR\&. You may not give any pathspec limiters\&. This is currently limited to a walk starting from a single revision, i\&.e\&., you may only give zero or one positive revision arguments, and
139 \fI<funcname>\fR) must exist in the starting revision\&. You can specify this option more than once\&. Implies
140 \fB\-\-patch\fR\&. Patch output can be suppressed using
141 \fB\-\-no\-patch\fR, but other diff formats (namely
147 \fB\-\-name\-only\fR,
148 \fB\-\-name\-status\fR,
149 \fB\-\-check\fR) are not currently implemented\&.
154 can take one of these forms:
170 is a number, it specifies an absolute line number (lines count from 1)\&.
183 This form will use the first line matching the given POSIX regex\&. If
185 is a regex, it will search from the end of the previous
187 range, if any, otherwise from the start of file\&. If
190 \fB^/regex/\fR, it will search from the start of file\&. If
192 is a regex, it will search starting at the line given by
206 This is only valid for
208 and will specify a number of lines before or after the line given by
217 \fI<end>\fR, it is a regular expression that denotes the range from the first funcname line that matches
218 \fI<funcname>\fR, up to the next funcname line\&.
220 searches from the end of the previous
222 range, if any, otherwise from the start of file\&.
224 searches from the start of file\&. The function names are determined in the same way as
226 works out patch hunk headers (see
227 \fIDefining a custom hunk\-header\fR
229 \fBgitattributes\fR(5))\&.
234 Limit the revisions to show\&. This can be either a single revision meaning show from the given revision and back, or it can be a range in the form "\fI<from>\fR\&.\&.\fI<to>\fR" to show all revisions between
237 \fI<to>\fR\&. Note, more advanced revision selection can be applied\&. For a more complete list of ways to spell object names, see
238 \fBgitrevisions\fR(7)\&.
243 Limit commits to the ones touching files in the given paths\&. Note, to avoid ambiguity with respect to revision names use "\-\-" to separate the paths from any preceding options\&.
245 .SS "gitk\-specific options"
247 \-\-argscmd=<command>
249 Command to be run each time gitk has to determine the revision range to show\&. The command is expected to print on its standard output a list of additional revisions to be shown, one per line\&. Use this instead of explicitly specifying a
250 \fI<revision range>\fR
251 if the set of commits to show may vary between refreshes\&.
254 \-\-select\-commit=<ref>
256 Select the specified commit after loading the graph\&. Default behavior is equivalent to specifying
257 \fI\-\-select\-commit=HEAD\fR\&.
261 gitk v2\&.6\&.12\&.\&. include/scsi drivers/scsi
263 Show the changes since version
265 that changed any file in the include/scsi or drivers/scsi subdirectories
268 gitk \-\-since="2 weeks ago" \-\- gitk
270 Show the changes during the last two weeks to the file
271 \fIgitk\fR\&. The "\-\-" is necessary to avoid confusion with the
277 gitk \-\-max\-count=100 \-\-all \-\- Makefile
279 Show at most 100 changes made to the file
280 \fIMakefile\fR\&. Instead of only looking for changes in the current branch look in all branches\&.
284 User configuration and preferences are stored at:
294 \fB$XDG_CONFIG_HOME/git/gitk\fR
295 if it exists, otherwise
310 If neither of the above exist then \fB$XDG_CONFIG_HOME/git/gitk\fR is created and used by default\&. If \fI$XDG_CONFIG_HOME\fR is not set it defaults to \fB$HOME/\&.config\fR in all cases\&.
313 Gitk was the first graphical repository browser\&. It\(cqs written in tcl/tk\&.
315 \fIgitk\fR is actually maintained as an independent project, but stable versions are distributed as part of the Git suite for the convenience of end users\&.
317 gitk\-git/ comes from Paul Mackerras\(cqs gitk project:
323 git://ozlabs\&.org/~paulus/gitk
332 A repository browser written in C++ using Qt\&.
337 A minimal repository browser and Git tool output highlighter written in C using Ncurses\&.
341 Part of the \fBgit\fR(1) suite