Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338761 - [server] Need better /git/status response.
Summary: [server] Need better /git/status response.
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: Tomasz Zarna CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-02 19:06 EST by libing wang CLA
Modified: 2011-09-01 11:42 EDT (History)
0 users

See Also:


Attachments

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