Skip to content

Commit 1cb2e96

Browse files
committed
Squelch errors by default (#450)
Callers have to know they need stderr in any capacity to use it, so let's not collect it unnecessarily.
1 parent eeedd2c commit 1cb2e96

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

git-command/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,14 @@ mod prepare {
7575
/// Note that the default IO is configured for typical API usage, that is
7676
///
7777
/// - `stdin` is null
78-
/// - `stdout` and `stderr` are captured.
78+
/// - `stdout` is captured.
79+
/// - `stderr` is null
7980
pub fn prepare(cmd: impl Into<OsString>) -> Prepare {
8081
Prepare {
8182
command: cmd.into(),
8283
stdin: std::process::Stdio::null(),
8384
stdout: std::process::Stdio::piped(),
84-
stderr: std::process::Stdio::piped(),
85+
stderr: std::process::Stdio::null(),
8586
use_shell: false,
8687
}
8788
}

0 commit comments

Comments
 (0)