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