Thread (16 messages) flat view 16 messages, 3 authors, 2016-06-15

Re: [Qgit RFC] commit --amend

From: Marco Costalba <hidden>
Date: 2016-06-15 22:43:15

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....
	}
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help