On 29-Oct-08, at 7:08 PM, Shawn O. Pearce 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? If so I think I'm doing what you're suggesting. 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 egit does provide some examples, just there's another API involved which can be confusing. The code in the jira git plugin the key classes are GitManagerImpl and RevisionIndexer, but the RevisionIndexer has some Lucene (text search engine) API mixed-in. Plus I'm still even learning about git much less the jgit api so I can't vouch for quality or correctness ;-). I could snip some code out and send it to you off-list for inclusion in the wiki maybe. later, j -- J. Longman longman@xiplink.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete this communication and any copy immediately. Thank you. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| monstr | [PATCH 11/60] microblaze_v4: cache support |
| Andrew Morton | Re: x86: 4kstacks default |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Alan Cox | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Ben Hutchings | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| Jiri Olsa | [PATCHv5 0/2] net: fix race in the receive/select |
