On 6/11/07, Jan Hudec [off-list ref] wrote:
I think I mostly understood it now. Thank you.
Anyhow I think this could be useful to you:
/*
getAllRefSha() returns the list of sha of a given
type, where type is a mask of Git::RefType flags
see src/git.h.
In this case we want the sha of the current branch
*/
QStringList revs = getAllRefSha(CUR_BRANCH);
if (!revs.isEmpty()) {
// all the sha info is stored in this QGit::Rev
// class defined in src/common.h
const Rev* r = revLookup(revs.first());
// short log (title) is
r->shortLog();
// message body is
r->longLog();
// etc....
}