pub async fn commit_patch( git_dir: &Path, sha: &str, ) -> Result<String, ForgeError>
The unified-diff patch text for a single commit (git show). Rendered inside an esc()’d <pre> — never as markup.
git show
esc()
<pre>