Merge three-way safeguards and harden frozen Git status reads

This commit is contained in:
Chris Bookholt
2026-07-06 21:12:53 -07:00
39 changed files with 10868 additions and 1049 deletions
+13
View File
@@ -670,6 +670,19 @@ async fn get_has_changes_rejects_configured_clean_filter_without_running_it() {
assert!(!configured_filter_ran(&repo_path).await);
}
#[tokio::test]
async fn get_has_changes_pins_normal_untracked_files_over_repository_config() {
let temp_dir = tempfile::tempdir().expect("create temp dir");
let repo_path = create_test_git_repo(&temp_dir).await;
run_git_async(&repo_path, &["config", "status.showUntrackedFiles", "no"]).await;
std::fs::write(repo_path.join("untracked.txt"), "untracked\n").expect("write untracked file");
assert_eq!(
try_get_has_changes_with_test_timeout(&repo_path).await,
Ok(true)
);
}
#[tokio::test]
async fn get_has_changes_distinguishes_filter_sentinels_from_literal_driver_names() {
for (driver, sentinel_attribute) in