Subject: Re: jgit as a jira plugin

From: "Shawn O. Pearce" <[email-masked]>
Date: Wed, 29 Oct 2008 16:53:17 -0700

"J. Longman" <[email-masked]> wrote:
> Basically I stole the pgm.Fetch code:
>
> Transport tn = Transport.open(repository, "origin");
> final FetchResult r;
> List<RefSpec> toget = new ArrayList<RefSpec>();
> try {
> 	r = tn.fetch(new TextProgressMonitor(), toget);
> } finally {
> 	tn.close();
> }
>
> Can I assume that this enough to update the database?

Yes

> After this (and not shown) is some  
> logging code taken from Fetch, which results in the following:
>
> From /Users/longman/workspace2/work/../masterRepo/
>     131dcf5..078d43f  master     -> origin/master
>
> but there doesn't appear to be any specific mention of the incoming  
> changes.

Well, the new changes are what "git log 131dcf5..078d43f" outputs.

-- 
Shawn.