Cotton code
19 lines · 1.0 KB · RustRaw
//! Git on a Mac — finding it, and giving this Mac one credential.//!//! Two files, and the rule they both exist for: **`/usr/bin/git` is never//! executed.** It is a 200 KB `xcode-select` shim whose only import is//! `_xcselect_invoke_xcrun`, it is on the sealed system volume of every Mac//! whether git is installed or not, and with no Command Line Tools it raises//! Apple's install-the-tools dialog INTO THE CALLER'S AQUA SESSION — on a Mac//! nobody is sitting at. `which git` finds it on a machine with no git at all,//! so it is worthless as a signal and dangerous as a target.//!//! [`discover`] is therefore a stat-only ladder over four absolute paths, and//! [`keychain`] is the one thing this Mac does with the answer before any//! repository is cloned: mint its own `ctg_` and hand it to//! `git credential-osxkeychain`, so every checkout on the machine — a Claude//! Code session, `pnpm worktree:new`, a runner's `actions/checkout` — clones//! and pushes with no prompt.pub mod discover;pub mod keychain;