blob: 6ade00217606cd111811dcd5777df5c66bb9bf39 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231gitk(1)
2=======
3
4NAME
5----
Junio C Hamano076ffcc2013-02-06 05:13:216gitk - The Git repository browser
Junio C Hamano1a4e8412005-12-27 08:17:237
8SYNOPSIS
9--------
Junio C Hamano15567bc2011-07-23 00:51:5910[verse]
Junio C Hamanob1c58582013-10-30 21:55:0011'gitk' [<options>] [<revision range>] [\--] [<path>...]
Junio C Hamano1a4e8412005-12-27 08:17:2312
13DESCRIPTION
14-----------
Junio C Hamano6b2cee12006-08-26 08:43:3115Displays changes in a repository or a selected set of commits. This includes
16visualizing the commit graph, showing information related to each commit, and
17the files in the trees of each revision.
Junio C Hamano1a4e8412005-12-27 08:17:2318
Junio C Hamano1a4e8412005-12-27 08:17:2319OPTIONS
20-------
Junio C Hamano1a4e8412005-12-27 08:17:2321
Junio C Hamanob1c58582013-10-30 21:55:0022To control which revisions to show, gitk supports most options
23applicable to the 'git rev-list' command. It also supports a few
24options applicable to the 'git diff-*' commands to control how the
25changes each commit introduces are shown. Finally, it supports some
26gitk-specific options.
Junio C Hamano1a4e8412005-12-27 08:17:2327
Junio C Hamanob1c58582013-10-30 21:55:0028gitk generally only understands options with arguments in the
29'sticked' form (see linkgit:gitcli[7]) due to limitations in the
Junio C Hamanoe1aeb5e2014-06-06 19:16:2930command-line parser.
Junio C Hamanob1c58582013-10-30 21:55:0031
32rev-list options and arguments
33~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34
35This manual page describes only the most frequently used options. See
36linkgit:git-rev-list[1] for a complete list.
37
38--all::
39
40Show all refs (branches, tags, etc.).
41
42--branches[=<pattern>]::
43--tags[=<pattern>]::
44--remotes[=<pattern>]::
45
46Pretend as if all the branches (tags, remote branches, resp.)
47are listed on the command line as '<commit>'. If '<pattern>'
48is given, limit refs to ones matching given shell glob. If
49pattern lacks '?', '{asterisk}', or '[', '/{asterisk}' at the
50end is implied.
Junio C Hamano6b2cee12006-08-26 08:43:3151
52--since=<date>::
53
54Show commits more recent than a specific date.
55
56--until=<date>::
57
58Show commits older than a specific date.
59
Junio C Hamanob1c58582013-10-30 21:55:0060--date-order::
Junio C Hamanod5784132006-09-20 21:29:2761
Junio C Hamanob1c58582013-10-30 21:55:0062Sort commits by date when possible.
Junio C Hamanod5784132006-09-20 21:29:2763
Junio C Hamano7d575a52008-04-30 08:45:2764--merge::
65
66After an attempt to merge stops with conflicts, show the commits on
67the history between two branches (i.e. the HEAD and the MERGE_HEAD)
Junio C Hamano61169122009-02-09 18:05:4968that modify the conflicted files and do not exist on all the heads
69being merged.
Junio C Hamano7d575a52008-04-30 08:45:2770
Junio C Hamanob1c58582013-10-30 21:55:0071--left-right::
Junio C Hamanoa387df32008-08-29 08:56:5872
Junio C Hamanob1c58582013-10-30 21:55:0073Mark which side of a symmetric diff a commit is reachable
74from. Commits from the left side are prefixed with a `<`
75symbol and those from the right with a `>` symbol.
Junio C Hamanod3452a02008-11-15 08:07:5576
Junio C Hamanob1c58582013-10-30 21:55:0077--full-history::
Junio C Hamanod3452a02008-11-15 08:07:5578
Junio C Hamanob1c58582013-10-30 21:55:0079When filtering history with '<path>...', does not prune some
80history. (See "History simplification" in linkgit:git-log[1]
81for a more detailed explanation.)
82
83--simplify-merges::
84
85Additional option to '--full-history' to remove some needless
86merges from the resulting history, as there are no selected
87commits contributing to this merge. (See "History
88simplification" in linkgit:git-log[1] for a more detailed
89explanation.)
90
91--ancestry-path::
92
93When given a range of commits to display
94(e.g. 'commit1..commit2' or 'commit2 {caret}commit1'), only
95display commits that exist directly on the ancestry chain
96between the 'commit1' and 'commit2', i.e. commits that are
97both descendants of 'commit1', and ancestors of 'commit2'.
98(See "History simplification" in linkgit:git-log[1] for a more
99detailed explanation.)
100
Junio C Hamanoc5bd79e2014-01-27 21:31:26101-L<start>,<end>:<file>::
Junio C Hamanodd5004a2015-05-06 19:33:32102-L:<funcname>:<file>::
Junio C Hamanoc5bd79e2014-01-27 21:31:26103
104Trace the evolution of the line range given by "<start>,<end>"
Junio C Hamanodd5004a2015-05-06 19:33:32105(or the function name regex <funcname>) within the <file>. You may
Junio C Hamanoc5bd79e2014-01-27 21:31:26106not give any pathspec limiters. This is currently limited to
107a walk starting from a single revision, i.e., you may only
108give zero or one positive revision arguments.
109You can specify this option more than once.
110+
111*Note:* gitk (unlike linkgit:git-log[1]) currently only understands
112this option if you specify it "glued together" with its argument. Do
113*not* put a space after `-L`.
114+
115include::line-range-format.txt[]
116
Junio C Hamanob1c58582013-10-30 21:55:00117<revision range>::
Junio C Hamano6b2cee12006-08-26 08:43:31118
119Limit the revisions to show. This can be either a single revision
120meaning show from the given revision and back, or it can be a range in
121the form "'<from>'..'<to>'" to show all revisions between '<from>' and
122back to '<to>'. Note, more advanced revision selection can be applied.
Junio C Hamano2d47c622007-01-18 06:24:10123For a more complete list of ways to spell object names, see
Junio C Hamanoc27b7332010-10-14 04:37:28124linkgit:gitrevisions[7].
Junio C Hamano6b2cee12006-08-26 08:43:31125
Junio C Hamano9e395072008-07-31 22:11:21126<path>...::
Junio C Hamano6b2cee12006-08-26 08:43:31127
128Limit commits to the ones touching files in the given paths. Note, to
Junio C Hamanoa9eca4e2009-03-04 08:29:59129avoid ambiguity with respect to revision names use "--" to separate the paths
Junio C Hamanoee1e4282007-02-04 08:32:04130from any preceding options.
Junio C Hamano1a4e8412005-12-27 08:17:23131
Junio C Hamanob1c58582013-10-30 21:55:00132gitk-specific options
133~~~~~~~~~~~~~~~~~~~~~
134
135--argscmd=<command>::
136
137Command to be run each time gitk has to determine the revision
138range to show. The command is expected to print on its
139standard output a list of additional revisions to be shown,
140one per line. Use this instead of explicitly specifying a
141'<revision range>' if the set of commits to show may vary
142between refreshes.
143
144--select-commit=<ref>::
145
146Select the specified commit after loading the graph.
147Default behavior is equivalent to specifying '--select-commit=HEAD'.
148
Junio C Hamano1a4e8412005-12-27 08:17:23149Examples
150--------
151gitk v2.6.12.. include/scsi drivers/scsi::
152
Junio C Hamano54bf1e22008-12-20 06:30:11153Show the changes since version 'v2.6.12' that changed any
Junio C Hamano1a4e8412005-12-27 08:17:23154file in the include/scsi or drivers/scsi subdirectories
155
Junio C Hamano1bb569e2006-05-05 23:14:25156gitk --since="2 weeks ago" \-- gitk::
Junio C Hamano1a4e8412005-12-27 08:17:23157
158Show the changes during the last two weeks to the file 'gitk'.
159The "--" is necessary to avoid confusion with the *branch* named
160'gitk'
161
Junio C Hamano764a6672007-10-23 01:23:31162gitk --max-count=100 --all \-- Makefile::
Junio C Hamanod5784132006-09-20 21:29:27163
164Show at most 100 changes made to the file 'Makefile'. Instead of only
165looking for changes in the current branch look in all branches.
166
Junio C Hamano1bdd3b02008-04-13 05:33:18167Files
168-----
Junio C Hamanoc2a58762014-03-28 22:15:20169User configuration and preferences are stored at:
170
171* '$XDG_CONFIG_HOME/git/gitk' if it exists, otherwise
172* '$HOME/.gitk' if it exists
173
174If neither of the above exist then '$XDG_CONFIG_HOME/git/gitk' is created and
175used by default. If '$XDG_CONFIG_HOME' is not set it defaults to
176'$HOME/.config' in all cases.
Junio C Hamano1bdd3b02008-04-13 05:33:18177
Junio C Hamanob1c58582013-10-30 21:55:00178History
179-------
180Gitk was the first graphical repository browser. It's written in
181tcl/tk and started off in a separate repository but was later merged
182into the main Git repository.
183
184
Junio C Hamano9049d912008-05-29 02:09:50185SEE ALSO
Junio C Hamano6b2cee12006-08-26 08:43:31186--------
187'qgit(1)'::
188A repository browser written in C++ using Qt.
189
190'gitview(1)'::
191A repository browser written in Python using Gtk. It's based on
Junio C Hamano076ffcc2013-02-06 05:13:21192'bzrk(1)' and distributed in the contrib area of the Git repository.
Junio C Hamano6b2cee12006-08-26 08:43:31193
194'tig(1)'::
Junio C Hamano076ffcc2013-02-06 05:13:21195A minimal repository browser and Git tool output highlighter written
Junio C Hamano6b2cee12006-08-26 08:43:31196in C using Ncurses.
197
Junio C Hamano1a4e8412005-12-27 08:17:23198GIT
199---
Junio C Hamanof7c042d2008-06-06 22:50:53200Part of the linkgit:git[1] suite