addPath method

Future<void> addPath(
  1. String path,
  2. GitHash hash
)

Implementation

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