From: Nathan W. Panike Date: Mon, 13 Apr 2009 20:31:49 GMT Subject: Re: help with git query Message-ID: In-Reply-To: <3a69fa7c0904131151p35945ed3y58cba069bd801337@mail.gmail.com> On Mon, Apr 13, 2009 at 1:51 PM, E R wrote: > Hi, > > I'd like to generate the following report from git: > > for each branch: > - info about the latest commit on that branch (date and time, message, etc.) Depending on what you want to do---from a bash shell, you could do: for i in $(git branch -a | cut -b3-); do echo $i; git show -s $i; echo; done > - info about the last time it was merged into master for i in $(git branch -a | cut -b3-); do echo $i; git show -s $(git merge-base $i master); echo; done > > What commands can I run to figure this out? I think I can figure out > the first one - it's the second one I'm having trouble with. > > And if it would easier to do it from the C API (or something like the > perl Git::PurePerl module) I'd be interested in knowing that, too. > > Thanks, > ER > -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >