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"])