Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334092 - [server] For git file store use only JGit API
Summary: [server] For git file store use only JGit API
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 0.2   Edit
Assignee: Tomasz Zarna CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 334503 (view as bug list)
Depends on: 330898 335033
Blocks:
  Show dependency tree
 
Reported: 2011-01-12 08:33 EST by Tomasz Zarna CLA
Modified: 2011-09-01 11:42 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Zarna CLA 2011-01-12 08:33:31 EST
When playing with git (GitFileStore) we should use only JGit (java implementation) API from org.eclipse.jgit. Since JGit's API is still shaping up this will require to use the most recent version of it.

One example is to replace CloneOperation from org.eclipse.egit.core and use CloneCommand from jgit once it's there (bug 330898). We should also consume all other useful commands which are in the org.eclipse.jgit.api package (like RmCommand for removing files).
Comment 1 Tomasz Zarna CLA 2011-01-12 08:34:35 EST
Another method that could benefit from using JGit API is org.eclipse.filesystem.git.GitFileStore.rm() which should use org.eclipse.jgit.api.RmCommand.
Comment 2 Tomasz Zarna CLA 2011-01-17 06:03:37 EST
*** Bug 334503 has been marked as a duplicate of this bug. ***
Comment 3 Tomasz Zarna CLA 2011-01-26 06:24:48 EST
Blocking bug in JGit (bug 330898) most probably won't be fixed for M5. We have two options here: 
* roll out our own implementation of CloneOperation and keep it in o.e.orion.server.filesystem.git 
* wait for the blocker
* provide a patch to JGit

If the status of bug 330898 doesn't change in the nearest future I will try to propose a fix in M6.
Comment 4 Tomasz Zarna CLA 2011-02-08 07:46:31 EST
Fixed with 6399f34b23ee5ff70762f1d8b57c5791140d553f.

Andrew, I simply removed entries for egit.core from orion.map and /org.eclipse.orion.server.feature/feature.xml. I hope this is enough and I didn't break anything.
Comment 5 Tomasz Zarna CLA 2011-02-08 07:56:03 EST
(In reply to comment #1)
> Another method that could benefit from using JGit API is
> org.eclipse.filesystem.git.GitFileStore.rm() which should use
> org.eclipse.jgit.api.RmCommand.

Filed bug 336609.