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

Bug 338761

Summary: [server] Need better /git/status response.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: ClientAssignee: Tomasz Zarna <tomasz.zarna>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.2   
Target Milestone: 0.2   
Hardware: PC   
OS: All   
Whiteboard:

Description libing wang CLA 2011-03-02 19:06:48 EST
Currently the /git/status response has the file full location information .
But this can not be directly used in /git/diff API.
A better response would be some thing like below:
Modified:[{"Location":{link to content}, "Name":{name}, "Git": ["GitDiff":{link to diff } ...
Comment 1 Tomasz Zarna CLA 2011-03-03 06:47:39 EST
Fixed with 87a16ba64da67a3a0eb6a6352e3c84e05e8a305c. 

While fixing bug 338760 I'll make sure you get proper /git/diff URIs for modified and changed files. So, when you have a file that is in both staged and unstaged areas the /git/diff/ URIs for it will be different: /git/diff/{file path} for modified and a parameterized /git/diff for changed.