pub fn configure_identity(dir: &Path)Expand description
Give the git repository at dir a deterministic identity and byte-stable
behaviour: user.name/user.email, commit.gpgsign=false (no keychain
prompts), and core.autocrlf=false (no CRLF rewriting under content
assertions on Windows).
Deliberately does NOT touch core.hooksPath: host-config hook leakage is
neutralised at the source instead — command’s env redirect keeps a host
global/system config (a core.hooksPath or init.templateDir) out of
every testkit-run git, and --template= on init keeps template hooks
from being copied into .git/hooks. Disabling hooks in the repo’s local
config would also disable hooks a test itself installs on purpose (e.g.
the hardened-profile suppression test).
Standalone (not folded into GitSandbox::init only) for tests whose
subject is repository initialisation itself — they run their own init
and only need the identity applied afterwards.