From a95dce783be9a049da5d71701c0aed0524e83fa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20L=C3=BCtke?= Date: Fri, 25 Sep 2026 16:17:59 +0000 Subject: [PATCH] git: no console window per probe on Windows Co-Authored-By: Claude Opus 5.5 (1M context) --- crates/disktree-app/src/git.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/crates/disktree-app/src/git.rs b/crates/disktree-app/src/git.rs index ec88f55..b4a69e3 100644 --- a/crates/disktree-app/src/git.rs +++ b/crates/disktree-app/src/git.rs @@ -157,7 +157,15 @@ fn run(path: &Path, args: &[&str]) -> Option { } fn git(path: &Path, args: &[&str]) -> Option { - Command::new("git") + let mut command = Command::new("git"); + // disktree is a GUI program on Windows, with no console to lend: without + // this, every probe flashes a console window of its own. + #[cfg(windows)] + std::os::windows::process::CommandExt::creation_flags( + &mut command, + 0x0800_0000, // CREATE_NO_WINDOW + ); + command .arg("-C") .arg(path) // A checkout's own config can name programs for git to run: an