Memention Blog

tig on Mac

Me and my colleague Tomas are using Subversion for our company source code repository. At our clients we have been using CVS, Perforce and SourceSafe.

Lately we have been looking at the new popular scm tools. Tomas has been using Mercurial a while and I have been looking at git. I have also been trying it out against github too.

As always with any scm tool there can never be to many diff or viewing tools and today I happened to stumble across a neat little console tool for git, called tig. Named in the humorous unix fashion by reversion the name, tig is git backwards. I found it on the gitready blog tig, the ncurses front-end to Git

But, I’m using a Mac and would like to try it out. In the blog they mention MacPorts as a means to install it but that seems a little to much just to try this little thing. So I looked into just grabbing the code and compiling it straight from the source.

I pulled it down and tried to compile it as below

$ mkdir tig
$ cd tig
$ git init
$ git pull
$ make 

But make fails. There is a Makefile in the package and a bunch of autoconf files. No prepared configure script though. The whole source code is only one single .c file, tig.c. make complains about some missing _iconv functions. So I added -liconv to the LDLIBS variable in the Makefile

LDLIBS ?= -lcurses -liconv

And that was all to get it running and I must say it’s pretty neat little thing. Have a look at the manual

By Edward Patel, 12 Dec 2009

Show comments


Getting there13 Mar 2014
Throwing pebbles12 Jul 2013
Provision this!30 Aug 2012
Break what?18 Aug 2011
That old thing04 May 2011
Removing a Step15 May 2010
Make It Work22 Feb 2010
KISS server31 Jan 2010
tig on Mac12 Dec 2009
The XML Runner31 Oct 2009
Get some software from Memention
Powered by Jekyll and Disqus.
Copyright © 2010-2013 Memention AB