Community
Participate
Working Groups
We're going to need REST API for git rm to remove files from the index.
This could be implemented as DELETE on IndexLocation of a file: /gitapi/index/file/{projectId}/{pathToFile}.
For now, staging file deletions is done by doing "git add -u {pattern}" in GitIndexHandlerV1.handlePut(...)[1]. This seems to work fine, but there are at least two drawbacks: * "git add" is called twice[1] * the file needs to be deleted first and then staged with "git add -u" to be removed from the index. With "git rm" in place, the former can be skipped[2] [1] org.eclipse.orion.server.git.servlets.GitIndexHandlerV1.handlePut(HttpServletRequest, HttpServletResponse, Repository, String) [2] see org.eclipse.orion.server.tests.servlets.git.GitStatusTest.testStatusRemoved() for details
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see: https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html