Windows: start git without a console window, and run one reload at a time #3

Merged
szaman merged 1 commits from fix/windows-console-windows into master 2026-10-15 10:20:30 +00:00
Owner

Fixes #2.

Changes

  • git() in src-tauri/src/git.rs starts git with the CREATE_NO_WINDOW flag on Windows. Windows no longer opens a console window for each git command, so nothing flashes and nothing takes the focus away from gites. The flag is only set in Windows builds.
  • load() in src/App.vue does nothing while a reload is still running. The window gets focus often, and overlapping reloads only run git more times.

Checked

  • The Windows part of git() compiles for x86_64-pc-windows-msvc. A deliberate type error in that part was reported, which proves the compiler checked it.
  • Unit tests for the window code and the Rust code pass, and the type checks pass.

Not checked

Nobody has run this build on Windows yet. The flashing and the slowness should stop. The 0xc0000142 crash should stop too if it came from the console windows, but that is not proven. Please try it on Windows before merging.

Fixes #2. ## Changes - `git()` in `src-tauri/src/git.rs` starts git with the `CREATE_NO_WINDOW` flag on Windows. Windows no longer opens a console window for each git command, so nothing flashes and nothing takes the focus away from gites. The flag is only set in Windows builds. - `load()` in `src/App.vue` does nothing while a reload is still running. The window gets focus often, and overlapping reloads only run git more times. ## Checked - The Windows part of `git()` compiles for `x86_64-pc-windows-msvc`. A deliberate type error in that part was reported, which proves the compiler checked it. - Unit tests for the window code and the Rust code pass, and the type checks pass. ## Not checked Nobody has run this build on Windows yet. The flashing and the slowness should stop. The 0xc0000142 crash should stop too if it came from the console windows, but that is not proven. Please try it on Windows before merging.
szaman added 1 commit 2026-10-15 10:14:05 +00:00
Start git without a console window on Windows, and run one reload at a time
release / release (push) Successful in 11m52s
ci / check (push) Successful in 2m27s
394d92e756
szaman merged commit 394d92e756 into master 2026-10-15 10:20:30 +00:00
szaman deleted branch fix/windows-console-windows 2026-10-15 10:20:30 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: szaman/gites#3