pub fn rev_verify_commit_in(cwd: &Path, rev: &str) -> Result<String>Expand description
git rev-parse --verify <rev>^{commit} — resolve rev to a commit SHA,
erroring when it does not name an existing commit. Stricter than
rev_parse_in: --verify rejects ambiguous / non-existent refs (rather
than echoing the input back), and the ^{commit} peel rejects a ref that
resolves to a non-commit object (e.g. a tree or blob SHA).