From: Marco Costalba Date: Mon, 11 Jun 2007 05:45:51 GMT Subject: Re: [Qgit RFC] commit --amend Message-ID: In-Reply-To: <20070611044258.GJ4084@efreet.light.src> On 6/11/07, Jan Hudec 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.... }