From f99e50263442b5e915026cb4e60ba2be113f2da0 Mon Sep 17 00:00:00 2001 From: atlas Date: Sun, 18 Oct 2026 11:27:47 +0200 Subject: [PATCH] swarm_agents_md: put git's doc comment back on git --- hive-agent/src/swarm_agents_md.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hive-agent/src/swarm_agents_md.rs b/hive-agent/src/swarm_agents_md.rs index 5655b4f3..a968afe4 100644 --- a/hive-agent/src/swarm_agents_md.rs +++ b/hive-agent/src/swarm_agents_md.rs @@ -259,8 +259,6 @@ fn apply_diff(state_dir: &Path, apply: &Apply) -> ApplyReply { } } -/// Run `git ` in `dir` with `diff` on stdin. The outer error is git not -/// running; the inner one is git's stderr when it exits non-zero. /// The first file mode a diff header sets that is not `100644`, if any. fn non_regular_mode(diff: &str) -> Option<&str> { diff.lines() @@ -272,6 +270,8 @@ fn non_regular_mode(diff: &str) -> Option<&str> { .find(|m| *m != "100644") } +/// Run `git ` in `dir` with `diff` on stdin. The outer error is git not +/// running; the inner one is git's stderr when it exits non-zero. fn git(dir: &Path, args: &[&str], diff: &str) -> std::io::Result> { let mut child = std::process::Command::new("git") .args(["-c", "core.symlinks=false"])