I have a script that copies some files from a git repository of mine on a remote server. For every file that is copied, if it is under version control, I want to generate a
I had a chat about this on #git with a few guys, and one of them (thanks Mikachu) found this Perl script which had the right algorithm but some serious implementation flaws.
So I fixed up the issues with that script, tidied it up a lot, and here is the result (download from here). Note that it currently requires Term::ANSIColor to run. here you can see a screenshot of it in action:
(source: adamspiers.org)
Hope that helps!