优化终端里的git操作

This commit is contained in:
xintaofei
2026-03-21 16:29:36 +08:00
parent 6e2ae6fb36
commit 51e9d15c8e
4 changed files with 137 additions and 168 deletions

View File

@@ -2,5 +2,12 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
// When called as a git credential helper, handle it immediately and exit.
// This avoids starting the full Tauri GUI runtime.
if std::env::args().any(|a| a == "--credential-helper") {
codeg_lib::git_credential::run_credential_helper();
return;
}
codeg_lib::run()
}