Community
Participate
Working Groups
Compare editor needs an API that would return a file content from the git index. The URL could look like this: /git/index/<file path>.
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.