Merge with master
[tig] / manual.html
CommitLineData
3ad8214b
JF
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\r
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\r
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\r
4<head>\r
5<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\r
6<meta name="generator" content="AsciiDoc 7.0.2" />\r
7<style type="text/css">\r
8/* Debug borders */\r
9p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {\r
10/*\r
11 border: 1px solid red;\r
12*/\r
13}\r
14\r
15body {\r
16 margin: 1em 5% 1em 5%;\r
17}\r
18\r
19a { color: blue; }\r
20a:visited { color: fuchsia; }\r
21\r
22em {\r
23 font-style: italic;\r
24}\r
25\r
26strong {\r
27 font-weight: bold;\r
28}\r
29\r
30tt {\r
31 color: navy;\r
32}\r
33\r
34h1, h2, h3, h4, h5, h6 {\r
35 color: #527bbd;\r
36 font-family: sans-serif;\r
37 margin-top: 1.2em;\r
38 margin-bottom: 0.5em;\r
39 line-height: 1.3;\r
40}\r
41\r
42h1 {\r
43 border-bottom: 2px solid silver;\r
44}\r
45h2 {\r
46 border-bottom: 2px solid silver;\r
47 padding-top: 0.5em;\r
48}\r
49\r
50div.sectionbody {\r
51 font-family: serif;\r
52 margin-left: 0;\r
53}\r
54\r
55hr {\r
56 border: 1px solid silver;\r
57}\r
58\r
59p {\r
60 margin-top: 0.5em;\r
61 margin-bottom: 0.5em;\r
62}\r
63\r
64pre {\r
65 padding: 0;\r
66 margin: 0;\r
67}\r
68\r
69span#author {\r
70 color: #527bbd;\r
71 font-family: sans-serif;\r
72 font-weight: bold;\r
73 font-size: 1.2em;\r
74}\r
75span#email {\r
76}\r
77span#revision {\r
78 font-family: sans-serif;\r
79}\r
80\r
81div#footer {\r
82 font-family: sans-serif;\r
83 font-size: small;\r
84 border-top: 2px solid silver;\r
85 padding-top: 0.5em;\r
86 margin-top: 4.0em;\r
87}\r
88div#footer-text {\r
89 float: left;\r
90 padding-bottom: 0.5em;\r
91}\r
92div#footer-badges {\r
93 float: right;\r
94 padding-bottom: 0.5em;\r
95}\r
96\r
97div#preamble,\r
98div.tableblock, div.imageblock, div.exampleblock, div.verseblock,\r
99div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,\r
100div.admonitionblock {\r
101 margin-right: 10%;\r
102 margin-top: 1.5em;\r
103 margin-bottom: 1.5em;\r
104}\r
105div.admonitionblock {\r
106 margin-top: 2.5em;\r
107 margin-bottom: 2.5em;\r
108}\r
109\r
110div.content { /* Block element content. */\r
111 padding: 0;\r
112}\r
113\r
114/* Block element titles. */\r
115div.title, caption.title {\r
116 font-family: sans-serif;\r
117 font-weight: bold;\r
118 text-align: left;\r
119 margin-top: 1.0em;\r
120 margin-bottom: 0.5em;\r
121}\r
122div.title + * {\r
123 margin-top: 0;\r
124}\r
125\r
126td div.title:first-child {\r
127 margin-top: 0.0em;\r
128}\r
129div.content div.title:first-child {\r
130 margin-top: 0.0em;\r
131}\r
132div.content + div.title {\r
133 margin-top: 0.0em;\r
134}\r
135\r
136div.sidebarblock > div.content {\r
137 background: #ffffee;\r
138 border: 1px solid silver;\r
139 padding: 0.5em;\r
140}\r
141\r
142div.listingblock > div.content {\r
143 border: 1px solid silver;\r
144 background: #f4f4f4;\r
145 padding: 0.5em;\r
146}\r
147\r
148div.quoteblock > div.content {\r
149 padding-left: 2.0em;\r
150}\r
151div.quoteblock .attribution {\r
152 text-align: right;\r
153}\r
154\r
155div.admonitionblock .icon {\r
156 vertical-align: top;\r
157 font-size: 1.1em;\r
158 font-weight: bold;\r
159 text-decoration: underline;\r
160 color: #527bbd;\r
161 padding-right: 0.5em;\r
162}\r
163div.admonitionblock td.content {\r
164 padding-left: 0.5em;\r
165 border-left: 2px solid silver;\r
166}\r
167\r
168div.exampleblock > div.content {\r
169 border-left: 2px solid silver;\r
170 padding: 0.5em;\r
171}\r
172\r
173div.verseblock div.content {\r
174 white-space: pre;\r
175}\r
176\r
177div.imageblock div.content { padding-left: 0; }\r
178div.imageblock img { border: 1px solid silver; }\r
179span.image img { border-style: none; }\r
180\r
181dl {\r
182 margin-top: 0.8em;\r
183 margin-bottom: 0.8em;\r
184}\r
185dt {\r
186 margin-top: 0.5em;\r
187 margin-bottom: 0;\r
188 font-style: italic;\r
189}\r
190dd > *:first-child {\r
191 margin-top: 0;\r
192}\r
193\r
194ul, ol {\r
195 list-style-position: outside;\r
196}\r
197ol.olist2 {\r
198 list-style-type: lower-alpha;\r
199}\r
200\r
201div.tableblock > table {\r
202 border-color: #527bbd;\r
203 border-width: 3px;\r
204}\r
205thead {\r
206 font-family: sans-serif;\r
207 font-weight: bold;\r
208}\r
209tfoot {\r
210 font-weight: bold;\r
211}\r
212\r
213div.hlist {\r
214 margin-top: 0.8em;\r
215 margin-bottom: 0.8em;\r
216}\r
217td.hlist1 {\r
218 vertical-align: top;\r
219 font-style: italic;\r
220 padding-right: 0.8em;\r
221}\r
222td.hlist2 {\r
223 vertical-align: top;\r
224}\r
225\r
226@media print {\r
227 div#footer-badges { display: none; }\r
228}\r
229/* Workarounds for IE6's broken and incomplete CSS2. */\r
230\r
231div.sidebar-content {\r
232 background: #ffffee;\r
233 border: 1px solid silver;\r
234 padding: 0.5em;\r
235}\r
236div.sidebar-title, div.image-title {\r
237 font-family: sans-serif;\r
238 font-weight: bold;\r
239 margin-top: 0.0em;\r
240 margin-bottom: 0.5em;\r
241}\r
242\r
243div.listingblock div.content {\r
244 border: 1px solid silver;\r
245 background: #f4f4f4;\r
246 padding: 0.5em;\r
247}\r
248\r
249div.quoteblock-content {\r
250 padding-left: 2.0em;\r
251}\r
252\r
253div.exampleblock-content {\r
254 border-left: 2px solid silver;\r
255 padding-left: 0.5em;\r
256}\r
257</style>\r
258<title>The tig Manual</title>\r
259</head>\r
260<body>\r
261<div id="header">\r
262<h1>The tig Manual</h1>\r
263<span id="author">Jonas Fonseca</span><br />\r
264<span id="email"><tt>&lt;<a href="mailto:fonseca@diku.dk">fonseca@diku.dk</a>&gt;</tt></span><br />\r
265</div>\r
266<div id="preamble">\r
267<div class="sectionbody">\r
268<p>This is the manual for tig, the ncurses-based text-mode interface for git.\r
269Tig allows you to browse changes in a git repository and can additionally act\r
270as a pager for output of various git commands. When used as a pager, it will\r
271display input from stdin and colorize it.</p>\r
272<p>When browsing repositories, tig uses the underlying git commands to present\r
273the user with various views, such as summarized commit log and showing the\r
274commit with the log message, diffstat, and the diff.</p>\r
275</div>\r
276</div>\r
277<h2>Calling Conventions</h2>\r
278<div class="sectionbody">\r
279<h3>Pager Mode</h3>\r
280<p>If stdin is a pipe, any log or diff options will be ignored and the pager view\r
281will be opened loading data from stdin. The pager mode can be used for\r
282colorizing output from various git commands.</p>\r
283<p>Example on how to colorize the output of git-show(1):</p>\r
284<div class="literalblock">\r
285<div class="content">\r
286<pre><tt>$ git show | tig</tt></pre>\r
287</div></div>\r
288<h3>Git Command Options</h3>\r
289<p>All git command options specified on the command line will be passed to the\r
290given command and all will be shell quoted before they are passed to the\r
291shell.</p>\r
292<div class="admonitionblock">\r
293<table><tr>\r
294<td class="icon">\r
295<div class="title">Note</div>\r
296</td>\r
297<td class="content">If you specify options for the main view, you should not use the\r
298<tt>&#8212;pretty</tt> option as this option will be set automatically to the format\r
299expected by the main view.</td>\r
300</tr></table>\r
301</div>\r
302<p>Example on how to open the log view and show both author and committer\r
303information:</p>\r
304<div class="literalblock">\r
305<div class="content">\r
306<pre><tt>$ tig log --pretty=fuller</tt></pre>\r
307</div></div>\r
308<p>See the <a href="#refspec">"Specifying revisions"</a> section below for an introduction\r
309to revision options supported by the git commands. For details on specific git\r
310command options, refer to the man page of the command in question.</p>\r
311</div>\r
312<h2>Environment Variables</h2>\r
313<div class="sectionbody">\r
314<p>Several options related to the interface with git can be configured via\r
315environment options.</p>\r
316<h3>Repository References</h3>\r
317<p>Commits that are referenced by tags and branch heads will be marked by the\r
318reference name surrounded by <em>[</em> and <em>]</em>:</p>\r
319<div class="literalblock">\r
320<div class="content">\r
321<pre><tt>2006-03-26 19:42 Petr Baudis | [cogito-0.17.1] Cogito 0.17.1</tt></pre>\r
322</div></div>\r
323<p>If you want to filter out certain directories under <tt>.git/refs/</tt>, say <tt>tmp</tt>\r
324you can do it by setting the following variable:</p>\r
325<div class="literalblock">\r
326<div class="content">\r
327<pre><tt>$ TIG_LS_REMOTE="git ls-remote . | sed /\/tmp\//d" tig</tt></pre>\r
328</div></div>\r
329<p>Or set the variable permanently in your environment.</p>\r
330<dl>\r
331<dt>\r
332TIG_LS_REMOTE\r
333</dt>\r
334<dd>\r
335<p>\r
336 Set command for retrieving all repository references. The command\r
337 should output data in the same format as git-ls-remote(1).\r
338</p>\r
339</dd>\r
340</dl>\r
341<h3><a id="history-commands"></a>History Commands</h3>\r
342<p>It is possible to alter which commands are used for the different views. If\r
343for example you prefer commits in the main view to be sorted by date and only\r
344show 500 commits, use:</p>\r
345<div class="literalblock">\r
346<div class="content">\r
347<pre><tt>$ TIG_MAIN_CMD="git log --date-order -n500 --pretty=raw %s" tig</tt></pre>\r
348</div></div>\r
349<p>Or set the variable permanently in your environment.</p>\r
350<p>Notice, how <tt>%s</tt> is used to specify the commit reference. There can be a\r
351maximum of 5 <tt>%s</tt> ref specifications.</p>\r
352<dl>\r
353<dt>\r
354TIG_DIFF_CMD\r
355</dt>\r
356<dd>\r
357<p>\r
358 The command used for the diff view. By default, git show is used\r
359 as a backend.\r
360</p>\r
361</dd>\r
362<dt>\r
363TIG_LOG_CMD\r
364</dt>\r
365<dd>\r
366<p>\r
367 The command used for the log view. If you prefer to have both\r
368 author and committer shown in the log view be sure to pass\r
369 <tt>&#8212;pretty=fuller</tt> to git log.\r
370</p>\r
371</dd>\r
372<dt>\r
373TIG_MAIN_CMD\r
374</dt>\r
375<dd>\r
376<p>\r
377 The command used for the main view. Note, you must always specify\r
378 the option: <tt>&#8212;pretty=raw</tt> since the main view parser expects to\r
379 read that format.\r
380</p>\r
381</dd>\r
382</dl>\r
383</div>\r
384<h2>The Viewer</h2>\r
385<div class="sectionbody">\r
386<p>The display consists of a status window on the last line of the screen and one\r
387or more views. The default is to only show one view at the time but it is\r
388possible to split both the main and log view to also show the commit diff.</p>\r
389<p>If you are in the log view and press <em>Enter</em> when the current line is a commit\r
390line, such as:</p>\r
391<div class="literalblock">\r
392<div class="content">\r
393<pre><tt>commit 4d55caff4cc89335192f3e566004b4ceef572521</tt></pre>\r
394</div></div>\r
395<p>You will split the view so that the log view is displayed in the top window\r
396and the diff view in the bottom window. You can switch between the two views\r
397by pressing <em>Tab</em>. To maximize the log view again, simply press <em>l</em>.</p>\r
398<h3>Current Head and Commit ID</h3>\r
399<p>The viewer keeps track of both what head and commit ID you are currently\r
400viewing. The commit ID will follow the cursor line and change everytime time\r
401you highlight a different commit. Whenever you reopen the diff view it will be\r
402reloaded, if the commit ID changed.</p>\r
403<p>The head ID is used when opening the main and log view to indicate from what\r
404revision to show history.</p>\r
405<h3>Views</h3>\r
406<p>tig(1) presents various <em>views</em> of a repository. Each view is based on output\r
407from an external command, most often <em>git log</em>, <em>git diff</em>, or <em>git show</em>.</p>\r
408<dl>\r
409<dt>\r
410The main view\r
411</dt>\r
412<dd>\r
413<p>\r
414 Is the default view, and it shows a one line summary of each commit\r
415 in the chosen list of revisions. The summary includes commit date,\r
416 author, and the first line of the log message. Additionally, any\r
417 repository references, such as tags, will be shown.\r
418</p>\r
419</dd>\r
420<dt>\r
421The log view\r
422</dt>\r
423<dd>\r
424<p>\r
425 Presents a more rich view of the revision log showing the whole log\r
426 message and the diffstat.\r
427</p>\r
428</dd>\r
429<dt>\r
430The diff view\r
431</dt>\r
432<dd>\r
433<p>\r
434 Shows either the diff of the current working tree, that is, what\r
435 has changed since the last commit, or the commit diff complete\r
436 with log message, diffstat and diff.\r
437</p>\r
438</dd>\r
439<dt>\r
440The pager view\r
441</dt>\r
442<dd>\r
443<p>\r
444 Is used for displaying both input from stdin and output from git\r
445 commands entered in the internal prompt.\r
446</p>\r
447</dd>\r
448<dt>\r
449The help view\r
450</dt>\r
451<dd>\r
452<p>\r
42afc55b 453 Displays key binding quick reference.\r
3ad8214b
JF
454</p>\r
455</dd>\r
456</dl>\r
457<h3>Title Windows</h3>\r
458<p>Each view has a title window which shows the name of the view, current commit\r
459ID if available, and where the view is positioned:</p>\r
460<div class="literalblock">\r
461<div class="content">\r
462<pre><tt>[main] c622eefaa485995320bc743431bae0d497b1d875 - commit 1 of 61 (1%)</tt></pre>\r
463</div></div>\r
464<p>By default, the title of the current view is highlighted using bold font. For\r
465long loading views (taking over 3 seconds) the time since loading started will\r
466be appended:</p>\r
467<div class="literalblock">\r
468<div class="content">\r
469<pre><tt>[main] 77d9e40fbcea3238015aea403e06f61542df9a31 - commit 1 of 779 (0%) 5s</tt></pre>\r
470</div></div>\r
471</div>\r
472<h2>Keys</h2>\r
473<div class="sectionbody">\r
474<p>Below the default key bindings are shown.</p>\r
475<h3>View Switching</h3>\r
476<dl>\r
477<dt>\r
478m\r
479</dt>\r
480<dd>\r
481<p>\r
482 Switch to main view.\r
483</p>\r
484</dd>\r
485<dt>\r
486d\r
487</dt>\r
488<dd>\r
489<p>\r
490 Switch to diff view.\r
491</p>\r
492</dd>\r
493<dt>\r
494l\r
495</dt>\r
496<dd>\r
497<p>\r
498 Switch to log view.\r
499</p>\r
500</dd>\r
501<dt>\r
502p\r
503</dt>\r
504<dd>\r
505<p>\r
506 Switch to pager view.\r
507</p>\r
508</dd>\r
509<dt>\r
42afc55b 510h, ?\r
3ad8214b
JF
511</dt>\r
512<dd>\r
513<p>\r
514 Show man page.\r
515</p>\r
516</dd>\r
517</dl>\r
518<h3>View Manipulation</h3>\r
519<dl>\r
520<dt>\r
521q\r
522</dt>\r
523<dd>\r
524<p>\r
525 Close view, if multiple views are open it will jump back to the\r
526 previous view in the view stack. If it is the last open view it\r
527 will quit. Use <em>Q</em> to quit all views at once.\r
528</p>\r
529</dd>\r
530<dt>\r
531Enter\r
532</dt>\r
533<dd>\r
534<p>\r
535 This key is "context sensitive" depending on what view you are\r
536 currently in. When in log view on a commit line or in the main\r
537 view, split the view and show the commit diff. In the diff view\r
538 pressing Enter will simply scroll the view one line down.\r
539</p>\r
540</dd>\r
541<dt>\r
542Tab\r
543</dt>\r
544<dd>\r
545<p>\r
546 Switch to next view.\r
547</p>\r
548</dd>\r
549<dt>\r
550Up\r
551</dt>\r
552<dd>\r
553<p>\r
554 This key is "context sensitive" and will move the cursor one\r
555 line up. However, uf you opened a diff view from the main view\r
556 (split- or full-screen) it will change the cursor to point to\r
557 the previous commit in the main view and update the diff view\r
558 to display it.\r
559</p>\r
560</dd>\r
561<dt>\r
562Down\r
563</dt>\r
564<dd>\r
565<p>\r
566 Similar to <em>Up</em> but will move down.\r
567</p>\r
568</dd>\r
569</dl>\r
570<h3>Cursor Navigation</h3>\r
571<dl>\r
572<dt>\r
573j\r
574</dt>\r
575<dd>\r
576<p>\r
577 Move cursor one line up.\r
578</p>\r
579</dd>\r
580<dt>\r
581k\r
582</dt>\r
583<dd>\r
584<p>\r
585 Move cursor one line down.\r
586</p>\r
587</dd>\r
588<dt>\r
589PgUp\r
590</dt>\r
591<dt>\r
592b\r
593</dt>\r
594<dt>\r
595-\r
596</dt>\r
597<dd>\r
598<p>\r
599 Move cursor one page up.\r
600</p>\r
601</dd>\r
602<dt>\r
603PgDown\r
604</dt>\r
605<dt>\r
606Space\r
607</dt>\r
608<dd>\r
609<p>\r
610 Move cursor one page down.\r
611</p>\r
612</dd>\r
613<dt>\r
614Home\r
615</dt>\r
616<dd>\r
617<p>\r
618 Jump to first line.\r
619</p>\r
620</dd>\r
621<dt>\r
622End\r
623</dt>\r
624<dd>\r
625<p>\r
626 Jump to last line.\r
627</p>\r
628</dd>\r
629</dl>\r
630<h3>Scrolling</h3>\r
631<dl>\r
632<dt>\r
633Insert\r
634</dt>\r
635<dd>\r
636<p>\r
637 Scroll view one line up.\r
638</p>\r
639</dd>\r
640<dt>\r
641Delete\r
642</dt>\r
643<dd>\r
644<p>\r
645 Scroll view one line down.\r
646</p>\r
647</dd>\r
648<dt>\r
649w\r
650</dt>\r
651<dd>\r
652<p>\r
653 Scroll view one page up.\r
654</p>\r
655</dd>\r
656<dt>\r
657s\r
658</dt>\r
659<dd>\r
660<p>\r
661 Scroll view one page down.\r
662</p>\r
663</dd>\r
664</dl>\r
665<h3>Misc</h3>\r
666<dl>\r
667<dt>\r
668Q\r
669</dt>\r
670<dd>\r
671<p>\r
672 Quit.\r
673</p>\r
674</dd>\r
675<dt>\r
676r\r
677</dt>\r
678<dd>\r
679<p>\r
680 Redraw screen.\r
681</p>\r
682</dd>\r
683<dt>\r
684z\r
685</dt>\r
686<dd>\r
687<p>\r
688 Stop all background loading. This can be useful if you use\r
689 tig(1) in a repository with a long history without limiting\r
690 the revision log.\r
691</p>\r
692</dd>\r
693<dt>\r
694v\r
695</dt>\r
696<dd>\r
697<p>\r
698 Show version.\r
699</p>\r
700</dd>\r
701<dt>\r
702n\r
703</dt>\r
704<dd>\r
705<p>\r
706 Toggle line numbers on/off.\r
707</p>\r
708</dd>\r
709<dt>\r
42afc55b
JF
710g\r
711</dt>\r
712<dd>\r
713<p>\r
714 Toggle revision graph visualization on/off.\r
715</p>\r
716</dd>\r
717<dt>\r
3ad8214b
JF
718<em>:</em>\r
719</dt>\r
720<dd>\r
721<p>\r
722 Open prompt. This allows you to specify what git command\r
723 to run. Example:\r
724</p>\r
725<div class="literalblock">\r
726<div class="content">\r
727<pre><tt>:log -p</tt></pre>\r
728</div></div>\r
729</dd>\r
730</dl>\r
731</div>\r
732<h2><a id="refspec"></a>Revision Specification</h2>\r
733<div class="sectionbody">\r
734<p>This section describes various ways to specify what revisions to display or\r
735otherwise limit the view to. tig(1) does not itself parse the described\r
736revision options so refer to the relevant git man pages for futher\r
737information. Relevant man pages besides git-log(1) are git-diff(1) and\r
738git-rev-list(1).</p>\r
739<p>You can tune the interaction with git by making use of the options explained\r
740in this section. For example, by configuring the environment variables\r
741described in the <a href="#history-commands">"History commands"</a> section.</p>\r
742<h3>Limit by Path Name</h3>\r
743<p>If you are interested only in those revisions that made changes to a specific\r
744file (or even several files) list the files like this:</p>\r
745<div class="literalblock">\r
746<div class="content">\r
747<pre><tt>$ tig log Makefile README</tt></pre>\r
748</div></div>\r
749<p>To avoid ambiguity with repository references such as tag name, be sure to\r
750separate file names from other git options using "--". So if you have a file\r
751named <em>master</em> it will clash with the reference named <em>master</em>, and thus you\r
752will have to use:</p>\r
753<div class="literalblock">\r
754<div class="content">\r
755<pre><tt>$ tig log -- master</tt></pre>\r
756</div></div>\r
757<div class="admonitionblock">\r
758<table><tr>\r
759<td class="icon">\r
760<div class="title">Note</div>\r
761</td>\r
762<td class="content">For the main view, avoiding ambiguity will in some cases require you to\r
763specify two "--" options. The first will make tig(1) stop option processing\r
764and the latter will be passed to git log.</td>\r
765</tr></table>\r
766</div>\r
767<h3>Limit by Date or Number</h3>\r
768<p>To speed up interaction with git, you can limit the amount of commits to show\r
769both for the log and main view. Either limit by date using e.g.\r
770<tt>&#8212;since=1.month</tt> or limit by the number of commits using <tt>-n400</tt>.</p>\r
771<p>If you are only interested in changed that happened between two dates you can\r
772use:</p>\r
773<div class="literalblock">\r
774<div class="content">\r
775<pre><tt>$ tig -- --after="May 5th" --before="2006-05-16 15:44"</tt></pre>\r
776</div></div>\r
777<div class="admonitionblock">\r
778<table><tr>\r
779<td class="icon">\r
780<div class="title">Note</div>\r
781</td>\r
782<td class="content">If you want to avoid having to quote dates containing spaces you can use\r
783"." instead, e.g. <tt>&#8212;after=May.5th</tt>.</td>\r
784</tr></table>\r
785</div>\r
786<h3>Limiting by Commit Ranges</h3>\r
787<p>Alternatively, commits can be limited to a specific range, such as "all\r
788commits between <em>tag-1.0</em> and <em>tag-2.0</em>". For example:</p>\r
789<div class="literalblock">\r
790<div class="content">\r
791<pre><tt>$ tig log tag-1.0..tag-2.0</tt></pre>\r
792</div></div>\r
793<p>This way of commit limiting makes it trivial to only browse the commits which\r
794haven't been pushed to a remote branch. Assuming <em>origin</em> is your upstream\r
795remote branch, using:</p>\r
796<div class="literalblock">\r
797<div class="content">\r
798<pre><tt>$ tig log origin..HEAD</tt></pre>\r
799</div></div>\r
800<p>will list what will be pushed to the remote branch. Optionally, the ending\r
801<em>HEAD</em> can be left out since it is implied.</p>\r
802<h3>Limiting by Reachability</h3>\r
803<p>Git interprets the range specifier "tag-1.0..tag-2.0" as "all commits\r
804reachable from <em>tag-2.0</em> but not from <em>tag-1.0</em>". Where reachability refers\r
805to what commits are ancestors (or part of the history) of the branch or tagged\r
806revision in question.</p>\r
807<p>If you prefer to specify which commit to preview in this way use the\r
808following:</p>\r
809<div class="literalblock">\r
810<div class="content">\r
811<pre><tt>$ tig log tag-2.0 ^tag-1.0</tt></pre>\r
812</div></div>\r
813<p>You can think of <em>^</em> as a negation operator. Using this alternate syntax, it\r
814is possible to further prune commits by specifying multiple branch cut offs.</p>\r
815<h3>Combining Revisions Specification</h3>\r
816<p>Revisions options can to some degree be combined, which makes it possible to\r
817say "show at most 20 commits from within the last month that changed files\r
818under the Documentation/ directory."</p>\r
819<div class="literalblock">\r
820<div class="content">\r
821<pre><tt>$ tig -- --since=1.month -n20 -- Documentation/</tt></pre>\r
822</div></div>\r
823<h3>Examining All Repository References</h3>\r
824<p>In some cases, it can be useful to query changes across all references in a\r
825repository. An example is to ask "did any line of development in this\r
826repository change a particular file within the last week". This can be\r
827accomplished using:</p>\r
828<div class="literalblock">\r
829<div class="content">\r
830<pre><tt>$ tig -- --all --since=1.week -- Makefile</tt></pre>\r
831</div></div>\r
832</div>\r
833<h2>BUGS</h2>\r
834<div class="sectionbody">\r
835<p>Known bugs and problems:</p>\r
836<ul>\r
837<li>\r
838<p>\r
839In it's current state tig is pretty much UTF-8 only.\r
840</p>\r
841</li>\r
842<li>\r
843<p>\r
844If the screen width is very small the main view can draw\r
845 outside the current view causing bad wrapping. Same goes\r
846 for title and status windows.\r
847</p>\r
848</li>\r
849<li>\r
850<p>\r
851The cursor can wrap-around on the last line and cause the\r
852 window to scroll.\r
853</p>\r
854</li>\r
855<li>\r
856<p>\r
857The prompt doesn't work while loading.\r
858</p>\r
859</li>\r
860</ul>\r
861</div>\r
862<h2>Copyright</h2>\r
863<div class="sectionbody">\r
864<p>Copyright (c) 2006 Jonas Fonseca &lt;fonseca@diku.dk&gt;</p>\r
865<p>This program is free software; you can redistribute it and/or modify\r
866it under the terms of the GNU General Public License as published by\r
867the Free Software Foundation; either version 2 of the License, or\r
868(at your option) any later version.</p>\r
869</div>\r
870<h2>References and Related Tools</h2>\r
871<div class="sectionbody">\r
872<ul>\r
873<li>\r
874<p>\r
875Homepage: <a href="http://jonas.nitro.dk/tig">http://jonas.nitro.dk/tig</a>\r
876</p>\r
877</li>\r
878<li>\r
879<p>\r
880Releases: <a href="http://jonas.nitro.dk/tig/releases">http://jonas.nitro.dk/tig/releases</a>\r
881</p>\r
882</li>\r
883<li>\r
884<p>\r
885Git URL: <a href="http://jonas.nitro.dk/tig/tig.git">http://jonas.nitro.dk/tig/tig.git</a>\r
886</p>\r
887</li>\r
888<li>\r
889<p>\r
890Gitweb: <a href="http://pasky.or.cz/gitweb.cgi?p=tig.git;a=summary">http://pasky.or.cz/gitweb.cgi?p=tig.git;a=summary</a>\r
891</p>\r
892</li>\r
893</ul>\r
894<p>Git porcelains:</p>\r
895<ul>\r
896<li>\r
897<p>\r
898<a href="http://www.kernel.org/pub/software/scm/git/docs/">git</a>,\r
899</p>\r
900</li>\r
901<li>\r
902<p>\r
903<a href="http://www.kernel.org/pub/software/scm/cogito/docs/">Cogito</a>\r
904</p>\r
905</li>\r
906</ul>\r
907<p>Other git repository browsers:</p>\r
908<ul>\r
909<li>\r
910<p>\r
911gitk(1)\r
912</p>\r
913</li>\r
914<li>\r
915<p>\r
916qgit(1)\r
917</p>\r
918</li>\r
919<li>\r
920<p>\r
921gitview(1)\r
922</p>\r
923</li>\r
924</ul>\r
925</div>\r
926<div id="footer">\r
927<div id="footer-text">\r
42afc55b 928Last updated 06-Jun-2006 13:56:34 CEST\r
3ad8214b
JF
929</div>\r
930</div>\r
931</body>\r
932</html>\r