Re: [Qgit RFC] commit --amend
- From
- Marco Costalba <mcostalba@gmail.com>
- Date
- Jun 11, 2007, 05:45 UTC
- Message-ID
- <e5bfff550706102245p27aea579w65ee96161630a624@mail.gmail.com>
- In-Reply-To
- <20070611044258.GJ4084@efreet.light.src>
On 6/11/07, Jan Hudec <bulb@ucw.cz> 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.... }