Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T08:02:37.623Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

possible-02.diff

27 lines · 971 B · text
1@@ -95,15 +95,19 @@
2     let output = child.output().await.context("reading git blame output")?;
3
4     if !output.status.success() {
5-        let stderr = String::from_utf8_lossy(&output.stderr);
6-        let trimmed = stderr.trim();
7-        if trimmed == GIT_BLAME_NO_COMMIT_ERROR || trimmed.contains(GIT_BLAME_NO_PATH) {
8-            return Ok(String::new());
9-        }
10-        anyhow::bail!("git blame process failed: {stderr}");
11+        return handle_command_output(output);
12     }
13
14     Ok(String::from_utf8(output.stdout)?)
15+}
16+
17+fn handle_command_output(output: std::process::Output) -> Result<String> {
18+    let stderr = String::from_utf8_lossy(&output.stderr);
19+    let trimmed = stderr.trim();
20+    if trimmed == GIT_BLAME_NO_COMMIT_ERROR || trimmed.contains(GIT_BLAME_NO_PATH) {
21+        return Ok(String::new());
22+    }
23+    anyhow::bail!("git blame process failed: {stderr}");
24 }
25
26 #[derive(Serialize, Deserialize, Default, Debug, Clone, PartialEq, Eq)]
27
Served at tenant.openagents/omega Member data and write actions are omitted.