possible-09.diff

 1@@ -5,7 +5,7 @@
 2 use futures::AsyncWriteExt;
 3 use gpui::SharedString;
 4 use serde::{Deserialize, Serialize};
 5-use std::process::Stdio;
 6+use std::process::{Output, Stdio};
 7 use std::{ops::Range, path::Path};
 8 use text::Rope;
 9 use time::OffsetDateTime;
10@@ -94,6 +94,10 @@
11
12     let output = child.output().await.context("reading git blame output")?;
13
14+    handle_command_output(output)
15+}
16+
17+fn handle_command_output(output: Output) -> Result<String> {
18     if !output.status.success() {
19         let stderr = String::from_utf8_lossy(&output.stderr);
20         let trimmed = stderr.trim();