Should we replace this by a libgit2 check if the file exists in the last commit? - Then we won't alter the index or do we don't mind?