Future<GitTree?> headTree() async { var commit = await headCommit(); if (commit == null) { return null; } var res = await objStorage.readTree(commit.treeHash); return res.get(); }