From f6b6a4951f6247b9eaabd2af28615ad082dc245e Mon Sep 17 00:00:00 2001 From: Chris Bookholt Date: Fri, 3 Jul 2026 18:55:35 -0700 Subject: [PATCH 1/2] fix(git): allow staged config accessor --- codex-rs/git-utils/src/git_config_environment.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/codex-rs/git-utils/src/git_config_environment.rs b/codex-rs/git-utils/src/git_config_environment.rs index 43d80a3afd..f386cfda39 100644 --- a/codex-rs/git-utils/src/git_config_environment.rs +++ b/codex-rs/git-utils/src/git_config_environment.rs @@ -98,6 +98,7 @@ impl GitConfigEnvironmentSnapshot { } } + #[cfg_attr(not(test), allow(dead_code))] pub(crate) fn value(&self, name: &str) -> Option<&OsStr> { self.entries .iter() From 409f1f78e7bdb39a5b3c09b06bbe5e435136a4df Mon Sep 17 00:00:00 2001 From: Chris Bookholt Date: Fri, 3 Jul 2026 19:08:26 -0700 Subject: [PATCH 2/2] test(git): allow staged Windows helper --- codex-rs/git-utils/src/git_config_sources_tests.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/codex-rs/git-utils/src/git_config_sources_tests.rs b/codex-rs/git-utils/src/git_config_sources_tests.rs index 222e9a614f..5a0569d424 100644 --- a/codex-rs/git-utils/src/git_config_sources_tests.rs +++ b/codex-rs/git-utils/src/git_config_sources_tests.rs @@ -41,6 +41,7 @@ fn init_repo_at(root: &Path) { } #[cfg(windows)] +#[allow(dead_code)] fn create_junction(path: &Path, target: &Path) { // Bazel's GNU Windows runner can surface temporary paths with `/` // separators. `mklink` treats those separators as option prefixes, so