Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347849 - [server]Need API from git status for repo and branch name.
Summary: [server]Need API from git status for repo and branch name.
Status: RESOLVED WORKSFORME
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Tomasz Zarna CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 339558
  Show dependency tree
 
Reported: 2011-05-31 15:13 EDT by libing wang CLA
Modified: 2011-08-30 10:20 EDT (History)
0 users

See Also:


Attachments
mylyn/context/zip (3.66 KB, application/octet-stream)
2011-06-08 05:46 EDT, Tomasz Zarna CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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