mirror of
https://github.com/openai/codex.git
synced 2026-10-22 17:58:46 +00:00
test(git): allow platform-specific staging hook
This commit is contained in:
@@ -27,6 +27,7 @@ std::thread_local! {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[cfg_attr(not(unix), allow(dead_code))]
|
||||
fn set_stage_paths_hook(point: StagePathsHookPoint, hook: impl FnOnce() + 'static) {
|
||||
STAGE_PATHS_HOOKS.with(|slots| {
|
||||
let prior = slots.borrow_mut()[point as usize].replace(Box::new(hook));
|
||||
|
||||
Reference in New Issue
Block a user