I haven’t been writing much in English about technical stuff, so I am going to start this blog with a series of articles that introduce some of my little works.
git-info(1) to begin with, which is a small shell script that provides Git with a similar functionality to “
svn info“. As a long time user of Subversion who was new to Git I really missed a handy command to see repository information at a glance, so I wrote this.
A sample output (at the time of writing) is as follows.
% git info
Repository Path: /home/knu/src/github/git-info/.git
origin firstname.lastname@example.org:knu/git-info.git (fetch)
origin email@example.com:knu/git-info.git (push)
origin/HEAD -> origin/master
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
fetch = +refs/heads/*:refs/remotes/origin/*
url = firstname.lastname@example.org:knu/git-info.git
remote = origin
merge = refs/heads/master
Last Changed Commit ID: da32fa59f7fab84606ce3c144e636043e96d8063
Last Changed Author: Akinori MUSHA
Last Changed Date: Tue Jul 28 10:37:09 2009 +0900
Last Changed Log:
Take the directory as a physical path.
Hope this helps you on your way.