Patch Set 2:

I am not sure if this is the right approach.
Perhaps we should replace the "Add to Git index" action by a "Stage" action.
This action could then reuse the logic in StagingView.stage (works also for non workspace files).
Same could apply for the "Remove from Git Index" action and StagingView.unstage.