Watch
0
0
Fork
You've already forked hyperhive
0

swarm_agents_md: put git's doc comment back on git

This commit is contained in:
atlas 2026-10-18 11:27:47 +02:00 • committed by mara
commit f99e502634

View file

@ -259,8 +259,6 @@ fn apply_diff(state_dir: &Path, apply: &Apply) -> ApplyReply {
} }
} }
/// Run `git <args>` 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. /// The first file mode a diff header sets that is not `100644`, if any.
fn non_regular_mode(diff: &str) -> Option<&str> { fn non_regular_mode(diff: &str) -> Option<&str> {
diff.lines() diff.lines()
@ -272,6 +270,8 @@ fn non_regular_mode(diff: &str) -> Option<&str> {
.find(|m| *m != "100644") .find(|m| *m != "100644")
} }
/// Run `git <args>` 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<Result<(), String>> { fn git(dir: &Path, args: &[&str], diff: &str) -> std::io::Result<Result<(), String>> {
let mut child = std::process::Command::new("git") let mut child = std::process::Command::new("git")
.args(["-c", "core.symlinks=false"]) .args(["-c", "core.symlinks=false"])