Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 337296

Summary: Add StatusCommand to JGit API
Product: [Technology] JGit Reporter: Tomasz Zarna <tomasz.zarna>
Component: JGitAssignee: Christian Halstrick <christian.halstrick>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: caniszczyk, christian.halstrick, Szymon.Brandys
Version: 0.11   
Target Milestone: 0.12-M1   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Tomasz Zarna CLA 2011-02-16 05:58:08 EST
Quoting Chris from bug 337212, comment 7: 

[The command] would probably return a collection of DirCache's you can iterate over or some type of StatusResult for your convenience.
Comment 1 Szymon Brandys CLA 2011-02-17 12:31:20 EST
In Bug 337212 you wrote "If you need help with this, I'm willing to get my hands dirty." Do you plan to work on that soon? We would need StatusCommand of some sort ASAP.
Comment 2 Chris Aniszczyk CLA 2011-02-21 11:20:46 EST
It's not on my list but we would take contributions.
Comment 3 Tomasz Zarna CLA 2011-02-25 09:27:27 EST
Created attachment 189804 [details]
mylyn/context/zip
Comment 4 Tomasz Zarna CLA 2011-03-01 07:01:42 EST
The command could be leveraged with the existing implementation in IndexDiff. The same applies to the code from egit.core[1]. This is what we did in bug 337212, so I was able to remove the dependency on this bug.

[1] org.eclipse.egit.ui.internal.decorators.DecoratableResourceHelper.decorateResource(DecoratableResource, TreeWalk)
Comment 5 Chris Aniszczyk CLA 2011-03-23 12:11:22 EDT
There's a change for review...

http://egit.eclipse.org/r/#change,2890
Comment 6 Chris Aniszczyk CLA 2011-03-23 12:24:03 EDT
Merged into master.

I hope you and the Orion team can use this Tomasz!