| Summary: | [server]Need API from git status for repo and branch name. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | libing wang <libingw> | ||||
| Component: | Client | Assignee: | 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
libing wang
Boris and Simon thinks this is more important so could you make it a priority? (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. Created attachment 197575 [details]
mylyn/context/zip
|