@@ -93,7 +93,10 @@
     stdin.flush().await?;

     let output = child.output().await.context("reading git blame output")?;
+    handle_command_output(output)
+}

+fn handle_command_output(output: std::process::Output) -> Result<String> {
     if !output.status.success() {
         let stderr = String::from_utf8_lossy(&output.stderr);
         let trimmed = stderr.trim();
