pub fn tree(run: &Run) -> Result<String>
The worktree’s content as one object id: git add --all, which stages without committing, then git write-tree. The same call when publishing says whether anything changed since.
git add --all
git write-tree