Future<void> addPath(String path, GitHash hash) async { var stat = await FileStat.stat(path); var entry = GitIndexEntry.fromFS(path, stat, hash); entries.add(entry); }