pub fn show_commit(
dir: &Path,
sha: &str,
rel_path: Option<&str>,
) -> Option<String>Expand description
A commit’s own unified diff (git show <sha>), or just the part touching
rel_path when given. None on any failure, including an invalid sha
(rejected before shelling out, the same guard checkout uses).