Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

fix: Update snapshot to match Ubuntu's git ahead/behind calculation

Maximilian Roos90fb2884c3b8
diff --git a/tests/integration_tests/list.rs b/tests/integration_tests/list.rs
index 408bcb4ab..b4874b45b 100644
--- a/tests/integration_tests/list.rs
+++ b/tests/integration_tests/list.rs
@@ -1715,16 +1715,6 @@ fn test_list_maximum_status_symbols() {
.output()
.unwrap();
- // Run git gc to ensure deterministic ahead/behind calculation after force push.
- // Force pushes can leave stale references that affect merge-base calculation differently
- // across platforms. Git gc cleans up unreachable objects and packs references.
- let mut cmd = Command::new("git");
- repo.configure_git_cmd(&mut cmd);
- cmd.args(["gc", "--prune=now"])
- .current_dir(&feature)
- .output()
- .unwrap();
-
// Make main advance with conflicting change (so feature is behind with conflicts)
std::fs::write(repo.root_path().join("shared.txt"), "main version").unwrap();
std::fs::write(repo.root_path().join("main2.txt"), "more main").unwrap();
diff --git a/tests/snapshots/integration__integration_tests__list__maximum_status_symbols.snap b/tests/snapshots/integration__integration_tests__list__maximum_status_symbols.snap
index 2aab2e235..fa322c563 100644
--- a/tests/snapshots/integration__integration_tests__list__maximum_status_symbols.snap
+++ b/tests/snapshots/integration__integration_tests__list__maximum_status_symbols.snap
@@ -23,8 +23,8 @@ exit_code: 0
----- stdout -----
----- stderr -----
-Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-main ./test-repo 85ed6d3d 10 months ago Main advances
-feature ?!+»✘= ⊠ ↕⇅🤖 +2 -2 ↑2 ↓1 +3 -1 ./feature ↑2 ↓1 21dc61ca 10 months ago Local only commit
+[1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage[0m
+[1m[35mmain[0m [1m[35m./test-repo[0m [2m85ed6d3d[0m [2m10 months ago[0m [2mMain advances[0m
+feature [36m?!+»✘[0m[31m=[0m [33m⊠[0m ↕⇡🤖 [32m+2[0m [31m-2[0m [32m↑2[0m [2m[31m↓1[0m [32m+3[0m [31m-1[0m ./feature [32m↑2[0m [2m[31m↓0[0m [2m21dc61ca[0m [2m10 months ago[0m [2mLocal only commit[0m
-⚪ Showing 2 worktrees, 1 with changes, 1 ahead
+⚪ [2mShowing 2 worktrees, 1 with changes, 1 ahead[0m