Tig: text-mode interface for git

Tig is a git repository browser that additionally can act as a pager for output from various git commands.

When browsing repositories, it uses the underlying git commands to present the user with various views, such as summarized revision log and showing the commit with the log message, diffstat, and the diff.

Using it as a pager, it will display input from stdin and colorize it.

Resources

Installation instructions

Download a tarball from http://jonas.nitro.dk/tig/releases or clone the tig repository http://jonas.nitro.dk/tig/tig.git. Documentation files are available in the tarballs and in the release branch of the tig repository.

The quick and simple way to install tig with documentation is to run:

$ make
$ make install install-doc

Optionally, you can use the configure script to detect library location:

$ ./configure
$ make
$ make install

If your iconv library is not in the default library and include path, you'll probably want to pass the "--with-libiconv" option to the "configure" script to tell it where to look. Note, if you are building from the tig repository, you need to first make the configure script:

$ make configure

Release notes documenting notable changes are available in the NEWS file. When upgrading, you are adviced to also read them after you have completed the installation.

The following tools and packages are needed:

Tool Description
git-core Tig is just a frontend for git.
ncurses Be sure to also have development files installed. Usually they are available in a separate package ending with -dev.
iconv If iconv is not provided by the c library you need to change the Makefile to link it into the binary.

The following optional tools and packages are needed for creating the configure script and building documentation:

autoconf Contains autoreconf for generating configure from configure.ac.
asciidoc (>= 8.0) Generates HTML and (DocBook) XML from text.
xmlto Generates manpages and chunked HTML from XML.
DocBook XSL (>= 1.72.0) Used by xmlto for building manpages.
DocBook (DSSL/Jade) tools Generates PDF from XML. Also known as docbook-utils.