git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: jgit as a jira plugin

From
Shawn O. Pearce <spearce@spearce.org>
Date
Oct 29, 2008, 23:53 UTC
Message-ID
<20081029235317.GC31926@spearce.org>
In-Reply-To
<D7D18CE8-BDBD-430A-BCB6-D1BEFD21C949@xiplink.com>
"J. Longman" <longman@xiplink.com> wrote:
Show 12 quoted lines
> 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
Show 8 quoted lines
> 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.
Previous: J. LongmanNext: Shawn O. Pearce
Message 4 of 5 in “jgit as a jira plugin”
  1. J. LongmanOct 29, 2008
  2. Shawn O. PearceOct 29, 2008
  3. J. LongmanOct 29, 2008
  4. Shawn O. PearceOct 29, 2008
  5. Shawn O. PearceOct 31, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.