swarm_agents_md: put git's doc comment back on git
This commit is contained in:
parent
c533caf8ef
commit
f99e502634
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
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 <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>> {
|
||||
let mut child = std::process::Command::new("git")
|
||||
.args(["-c", "core.symlinks=false"])
|
||||
|
|
|
|||
Loading…
Reference in a new issue