Documentation / gitk.txton commit Ninth batch of topics for 2.10 (80460f5)
   1gitk(1)
   2=======
   3
   4NAME
   5----
   6gitk - The Git repository browser
   7
   8SYNOPSIS
   9--------
  10[verse]
  11'gitk' [<options>] [<revision range>] [\--] [<path>...]
  12
  13DESCRIPTION
  14-----------
  15Displays 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.
  18
  19OPTIONS
  20-------
  21
  22To 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.
  27
  28gitk generally only understands options with arguments in the
  29'sticked' form (see linkgit:gitcli[7]) due to limitations in the
  30command-line parser.
  31
  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
  40        Show all refs (branches, tags, etc.).
  41
  42--branches[=<pattern>]::
  43--tags[=<pattern>]::
  44--remotes[=<pattern>]::
  45
  46        Pretend as if all the branches (tags, remote branches, resp.)
  47        are listed on the command line as '<commit>'. If '<pattern>'
  48        is given, limit refs to ones matching given shell glob. If
  49        pattern lacks '?', '{asterisk}', or '[', '/{asterisk}' at the
  50        end is implied.
  51
  52--since=<date>::
  53
  54        Show commits more recent than a specific date.
  55
  56--until=<date>::
  57
  58        Show commits older than a specific date.
  59
  60--date-order::
  61
  62        Sort commits by date when possible.
  63
  64--merge::
  65
  66        After an attempt to merge stops with conflicts, show the commits on
  67        the history between two branches (i.e. the HEAD and the MERGE_HEAD)
  68        that modify the conflicted files and do not exist on all the heads
  69        being merged.
  70
  71--left-right::
  72
  73        Mark which side of a symmetric diff a commit is reachable
  74        from.  Commits from the left side are prefixed with a `<`
  75        symbol and those from the right with a `>` symbol.
  76
  77--full-history::
  78
  79        When filtering history with '<path>...', does not prune some
  80        history.  (See "History simplification" in linkgit:git-log[1]
  81        for a more detailed explanation.)
  82
  83--simplify-merges::
  84
  85        Additional option to `--full-history` to remove some needless
  86        merges from the resulting history, as there are no selected
  87        commits contributing to this merge.  (See "History
  88        simplification" in linkgit:git-log[1] for a more detailed
  89        explanation.)
  90
  91--ancestry-path::
  92
  93        When given a range of commits to display
  94        (e.g. 'commit1..commit2' or 'commit2 {caret}commit1'), only
  95        display commits that exist directly on the ancestry chain
  96        between the 'commit1' and 'commit2', i.e. commits that are
  97        both descendants of 'commit1', and ancestors of 'commit2'.
  98        (See "History simplification" in linkgit:git-log[1] for a more
  99        detailed explanation.)
 100
 101-L<start>,<end>:<file>::
 102-L:<funcname>:<file>::
 103
 104        Trace the evolution of the line range given by "<start>,<end>"
 105        (or the function name regex <funcname>) within the <file>.  You may
 106        not give any pathspec limiters.  This is currently limited to
 107        a walk starting from a single revision, i.e., you may only
 108        give zero or one positive revision arguments.
 109        You 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
 117<revision range>::
 118
 119        Limit the revisions to show. This can be either a single revision
 120        meaning show from the given revision and back, or it can be a range in
 121        the form "'<from>'..'<to>'" to show all revisions between '<from>' and
 122        back to '<to>'. Note, more advanced revision selection can be applied.
 123        For a more complete list of ways to spell object names, see
 124        linkgit:gitrevisions[7].
 125
 126<path>...::
 127
 128        Limit commits to the ones touching files in the given paths. Note, to
 129        avoid ambiguity with respect to revision names use "--" to separate the paths
 130        from any preceding options.
 131
 132gitk-specific options
 133~~~~~~~~~~~~~~~~~~~~~
 134
 135--argscmd=<command>::
 136
 137        Command to be run each time gitk has to determine the revision
 138        range to show.  The command is expected to print on its
 139        standard output a list of additional revisions to be shown,
 140        one per line.  Use this instead of explicitly specifying a
 141        '<revision range>' if the set of commits to show may vary
 142        between refreshes.
 143
 144--select-commit=<ref>::
 145
 146        Select the specified commit after loading the graph.
 147        Default behavior is equivalent to specifying '--select-commit=HEAD'.
 148
 149Examples
 150--------
 151gitk v2.6.12.. include/scsi drivers/scsi::
 152
 153        Show the changes since version 'v2.6.12' that changed any
 154        file in the include/scsi or drivers/scsi subdirectories
 155
 156gitk --since="2 weeks ago" \-- gitk::
 157
 158        Show the changes during the last two weeks to the file 'gitk'.
 159        The "--" is necessary to avoid confusion with the *branch* named
 160        'gitk'
 161
 162gitk --max-count=100 --all \-- Makefile::
 163
 164        Show at most 100 changes made to the file 'Makefile'. Instead of only
 165        looking for changes in the current branch look in all branches.
 166
 167Files
 168-----
 169User 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.
 177
 178History
 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
 185SEE ALSO
 186--------
 187'qgit(1)'::
 188        A repository browser written in C++ using Qt.
 189
 190'gitview(1)'::
 191        A repository browser written in Python using Gtk. It's based on
 192        'bzrk(1)' and distributed in the contrib area of the Git repository.
 193
 194'tig(1)'::
 195        A minimal repository browser and Git tool output highlighter written
 196        in C using Ncurses.
 197
 198GIT
 199---
 200Part of the linkgit:git[1] suite