| Summary: | [server] Provide REST API to get file content from index | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Tomasz Zarna <tomasz.zarna> |
| Component: | Client | Assignee: | Tomasz Zarna <tomasz.zarna> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | libingw |
| Version: | 0.2 | ||
| Target Milestone: | 0.2 | ||
| Hardware: | PC | ||
| OS: | All | ||
| URL: | http://wiki.eclipse.org/Orion/How_Tos/Working_with_git | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 334206 | ||
|
Description
Tomasz Zarna
File content kept in the index can be retrieved by calling GET on /git/index/file/<path>. I haven't tested it extensively, so I'm not sure what would happen if you try to get index for a folder or a file which hasn't been modified. But it works for the simplest case what you have a modified file in the working tree and would like to see the original content (in index). If you find something unexpected, please open a bug and assign to me right away. Fixed with 5e3db69a9bb4671cfd4cbc0762b55c76e13499ac. |