pub fn index_tree(dir: &Path, gd: &Path) -> Result<String, Box<dyn Error>>
The tree the index would commit, read without touching the index or its lock (a scratch copy of the index).