Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | gitk(1) |
| 2 | ======= |
| 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | 7c73c66 | 2007-01-19 00:37:50 | [diff] [blame] | 6 | gitk - The git repository browser |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
Junio C Hamano | 6b2cee1 | 2006-08-26 08:43:31 | [diff] [blame] | 10 | 'gitk' [<option>...] [<revs>] [--] [<path>...] |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 11 | |
| 12 | DESCRIPTION |
| 13 | ----------- |
Junio C Hamano | 6b2cee1 | 2006-08-26 08:43:31 | [diff] [blame] | 14 | Displays changes in a repository or a selected set of commits. This includes |
| 15 | visualizing the commit graph, showing information related to each commit, and |
| 16 | the files in the trees of each revision. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 17 | |
Junio C Hamano | 6b2cee1 | 2006-08-26 08:43:31 | [diff] [blame] | 18 | Historically, gitk was the first repository browser. It's written in tcl/tk |
| 19 | and started off in a separate repository but was later merged into the main |
| 20 | git repository. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 21 | |
| 22 | OPTIONS |
| 23 | ------- |
Junio C Hamano | 6b2cee1 | 2006-08-26 08:43:31 | [diff] [blame] | 24 | To control which revisions to shown, the command takes options applicable to |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 25 | the 'git-rev-list' command (see linkgit:git-rev-list[1]). |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 26 | This manual page describes only the most |
Junio C Hamano | 6b2cee1 | 2006-08-26 08:43:31 | [diff] [blame] | 27 | frequently used options. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 28 | |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 29 | -n <number>:: |
| 30 | --max-count=<number>:: |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 31 | |
Junio C Hamano | 6b2cee1 | 2006-08-26 08:43:31 | [diff] [blame] | 32 | Limits the number of commits to show. |
| 33 | |
| 34 | --since=<date>:: |
| 35 | |
| 36 | Show commits more recent than a specific date. |
| 37 | |
| 38 | --until=<date>:: |
| 39 | |
| 40 | Show commits older than a specific date. |
| 41 | |
Junio C Hamano | d578413 | 2006-09-20 21:29:27 | [diff] [blame] | 42 | --all:: |
| 43 | |
| 44 | Show all branches. |
| 45 | |
Junio C Hamano | 7d575a5 | 2008-04-30 08:45:27 | [diff] [blame] | 46 | --merge:: |
| 47 | |
| 48 | After an attempt to merge stops with conflicts, show the commits on |
| 49 | the history between two branches (i.e. the HEAD and the MERGE_HEAD) |
| 50 | that modify the conflicted files. |
| 51 | |
Junio C Hamano | a387df3 | 2008-08-29 08:56:58 | [diff] [blame] | 52 | --argscmd=<command>:: |
| 53 | Command to be run each time gitk has to determine the list of |
| 54 | <revs> to show. The command is expected to print on its standard |
| 55 | output a list of additional revs to be shown, one per line. |
| 56 | Use this instead of explicitly specifying <revs> if the set of |
| 57 | commits to show may vary between refreshes. |
| 58 | |
Junio C Hamano | 6b2cee1 | 2006-08-26 08:43:31 | [diff] [blame] | 59 | <revs>:: |
| 60 | |
| 61 | Limit the revisions to show. This can be either a single revision |
| 62 | meaning show from the given revision and back, or it can be a range in |
| 63 | the form "'<from>'..'<to>'" to show all revisions between '<from>' and |
| 64 | back to '<to>'. Note, more advanced revision selection can be applied. |
Junio C Hamano | 2d47c62 | 2007-01-18 06:24:10 | [diff] [blame] | 65 | For a more complete list of ways to spell object names, see |
Junio C Hamano | 35738e8 | 2008-01-07 07:55:46 | [diff] [blame] | 66 | "SPECIFYING REVISIONS" section in linkgit:git-rev-parse[1]. |
Junio C Hamano | 6b2cee1 | 2006-08-26 08:43:31 | [diff] [blame] | 67 | |
Junio C Hamano | 9e39507 | 2008-07-31 22:11:21 | [diff] [blame] | 68 | <path>...:: |
Junio C Hamano | 6b2cee1 | 2006-08-26 08:43:31 | [diff] [blame] | 69 | |
| 70 | Limit commits to the ones touching files in the given paths. Note, to |
| 71 | avoid ambiguity wrt. revision names use "--" to separate the paths |
Junio C Hamano | ee1e428 | 2007-02-04 08:32:04 | [diff] [blame] | 72 | from any preceding options. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 73 | |
| 74 | Examples |
| 75 | -------- |
| 76 | gitk v2.6.12.. include/scsi drivers/scsi:: |
| 77 | |
| 78 | Show as the changes since version 'v2.6.12' that changed any |
| 79 | file in the include/scsi or drivers/scsi subdirectories |
| 80 | |
Junio C Hamano | 1bb569e | 2006-05-05 23:14:25 | [diff] [blame] | 81 | gitk --since="2 weeks ago" \-- gitk:: |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 82 | |
| 83 | Show the changes during the last two weeks to the file 'gitk'. |
| 84 | The "--" is necessary to avoid confusion with the *branch* named |
| 85 | 'gitk' |
| 86 | |
Junio C Hamano | 764a667 | 2007-10-23 01:23:31 | [diff] [blame] | 87 | gitk --max-count=100 --all \-- Makefile:: |
Junio C Hamano | d578413 | 2006-09-20 21:29:27 | [diff] [blame] | 88 | |
| 89 | Show at most 100 changes made to the file 'Makefile'. Instead of only |
| 90 | looking for changes in the current branch look in all branches. |
| 91 | |
Junio C Hamano | 1bdd3b0 | 2008-04-13 05:33:18 | [diff] [blame] | 92 | Files |
| 93 | ----- |
| 94 | Gitk creates the .gitk file in your $HOME directory to store preferences |
| 95 | such as display options, font, and colors. |
| 96 | |
Junio C Hamano | 9049d91 | 2008-05-29 02:09:50 | [diff] [blame] | 97 | SEE ALSO |
Junio C Hamano | 6b2cee1 | 2006-08-26 08:43:31 | [diff] [blame] | 98 | -------- |
| 99 | 'qgit(1)':: |
| 100 | A repository browser written in C++ using Qt. |
| 101 | |
| 102 | 'gitview(1)':: |
| 103 | A repository browser written in Python using Gtk. It's based on |
| 104 | 'bzrk(1)' and distributed in the contrib area of the git repository. |
| 105 | |
| 106 | 'tig(1)':: |
| 107 | A minimal repository browser and git tool output highlighter written |
| 108 | in C using Ncurses. |
| 109 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 110 | Author |
| 111 | ------ |
Junio C Hamano | 6b2cee1 | 2006-08-26 08:43:31 | [diff] [blame] | 112 | Written by Paul Mackerras <paulus@samba.org>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 113 | |
| 114 | Documentation |
| 115 | -------------- |
Junio C Hamano | 6b2cee1 | 2006-08-26 08:43:31 | [diff] [blame] | 116 | Documentation by Junio C Hamano, Jonas Fonseca, and the git-list |
| 117 | <git@vger.kernel.org>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 118 | |
| 119 | GIT |
| 120 | --- |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 121 | Part of the linkgit:git[1] suite |