Re: jgit as a jira plugin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"J. Longman" <longman@xxxxxxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux