Future<GitHash?> rmFileFromIndex(GitIndex index, String filePath) async { var pathSpec = toPathSpec(normalizePath(filePath)); return index.removePath(pathSpec); }