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

Bug 347849

Summary: [server]Need API from git status for repo and branch name.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: ClientAssignee: Tomasz Zarna <tomasz.zarna>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 0.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 339558    
Attachments:
Description Flags
mylyn/context/zip none

Description libing wang CLA 2011-05-31 15:13:21 EDT
We need the git-status API to return a the repo and brach name in order for UI  to show the repository name and the branch information in the git status title.
Comment 1 libing wang CLA 2011-06-07 15:54:07 EDT
Boris and Simon thinks this is more important so could you make it a priority?
Comment 2 Tomasz Zarna CLA 2011-06-08 05:45:53 EDT
(In reply to comment #0)
> [...] show the repository name and the branch information in the git status title.

You are able to collect that data basing on the current response content. 

You should start with doing GET on "CloneLocation". The result will contain "Name", which is name of the repository and "BranchLocation" which when followed (GET) will return you a list of branches for the repo, one of them should be the active ("Current" : true). Once you find it, you can then check for the branch "Name".

I've set up a test verifying the described path, see http://git.eclipse.org/c/e4/org.eclipse.orion.server.git/commit/?id=11d2a835cea0bb1fbb6d30577df81f28ff5b87da.
Comment 3 Tomasz Zarna CLA 2011-06-08 05:46:20 EDT
Created attachment 197575 [details]
mylyn/context/zip