script that allows you to view the different versions of a file and step forward / backward through them.
Go to file
2010-10-02 01:32:46 +02:00
git-hist.sh Amélioration du menu d'aide. 2010-10-02 01:32:46 +02:00
LICENCE Public domain (fixed wording). 2010-08-19 05:13:47 +02:00
README.markdown Small detail in readme. 2010-08-19 05:23:34 +02:00

git-history

Usage

Usage : sh git-hist.sh filename
You must be in a directory versionned with git for this to work.

Features

At the moment, you can view previous, next, first, last version, scroll up, down & back to top.

Dependencies

  • terminal with color & cursor movement ansi codes
  • bash
  • tput
  • git
  • unix tools : tail head nl tac cut

Background

I've been looking for a tool that would visually "replay" the programmer's work, like a 24h/24 screencast of his editor, but fast forward. The aim is to :

  1. See the evolution of the whole project.
  2. See the evolution of the contents of a single file.

Gource provides a soluion for aim #1, and Apple's "time machine" (Mac OS X) seems to provide something somehow related. But both seem to work with a granularity of files & folders, which is too big for aim #2 (I want to see the acual code being modified).

So I created a short script that allows you to navigate through the different versions of a single file.