Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Remove "behind" from summary line in list command
Maximilian Roos13a8d739d59f
diff --git a/src/commands/list/mod.rs b/src/commands/list/mod.rsindex cb978897a..898cd1149 100644--- a/src/commands/list/mod.rs+++ b/src/commands/list/mod.rs@@ -167,10 +167,6 @@ fn display_summary(items: &[ListItem], include_branches: bool, layout: &layout::parts.push(format!("{} ahead", metrics.ahead_items));}- if metrics.behind_items > 0 {- parts.push(format!("{} behind", metrics.behind_items));- }-if layout.hidden_nonempty_count > 0 {let plural = if layout.hidden_nonempty_count == 1 {"column"@@ -193,7 +189,6 @@ struct SummaryMetrics {branches: usize,dirty_worktrees: usize,ahead_items: usize,- behind_items: usize,}impl SummaryMetrics {@@ -212,8 +207,5 @@ impl SummaryMetrics {if counts.ahead > 0 {self.ahead_items += 1;}- if counts.behind > 0 {- self.behind_items += 1;- }}}diff --git a/tests/integration_tests/snapshots/integration__integration_tests__bare_repository__bare_repo_list_worktrees.snap b/tests/integration_tests/snapshots/integration__integration_tests__bare_repository__bare_repo_list_worktrees.snapindex db16d2ad9..30bec7769 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__bare_repository__bare_repo_list_worktrees.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__bare_repository__bare_repo_list_worktrees.snap@@ -1,6 +1,5 @@---source: tests/integration_tests/bare_repository.rs-assertion_line: 175info:program: wtargs:@@ -10,11 +9,12 @@ info:COLUMNS: "150"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CNO_COLOR: ""SOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpsBQ6VP/test-config.toml+ WORKTRUNK_CONFIG: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpdVovT7/test-config.toml---success: trueexit_code: 0@@ -23,6 +23,6 @@ Branch Status HEAD± main↕ Path Remote↕ Commit Agefeature ./test-repo.feature 72413a3b 10 months ago Work on featuremain ∅ ↓ ↓1 ./test-repo.main 6c3da842 10 months ago Initial commit on main-⚪ Showing 2 worktrees, 1 behind+⚪ Showing 2 worktrees----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__list__long_commit_message.snap b/tests/snapshots/integration__integration_tests__list__long_commit_message.snapindex 91df95c2d..01c4d7a6a 100644--- a/tests/snapshots/integration__integration_tests__list__long_commit_message.snap+++ b/tests/snapshots/integration__integration_tests__list__long_commit_message.snap@@ -15,7 +15,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpfBW90h/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpTnj240/test-config.toml---success: trueexit_code: 0@@ -24,6 +24,6 @@ exit_code: 0[1m[35mmain[0m [1m[35m./test-repo[0m [2m1310bfb9[0m [2m10 months ago[0m [2mShort message[0m[2mfeature-a[0m ∅ ↓ [2m[31m↓1[0m [2m./feature-a[0m [2mf078644e[0m [2m10 months ago[0m [2mThis is a very long commit message that should test how the...[0m-⚪ [2mShowing 2 worktrees, 1 behind[0m+⚪ [2mShowing 2 worktrees[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__list__unicode_commit_message.snap b/tests/snapshots/integration__integration_tests__list__unicode_commit_message.snapindex 8e66550b8..36e65dafe 100644--- a/tests/snapshots/integration__integration_tests__list__unicode_commit_message.snap+++ b/tests/snapshots/integration__integration_tests__list__unicode_commit_message.snap@@ -15,7 +15,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpeBoewF/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp40cmmH/test-config.toml---success: trueexit_code: 0@@ -24,6 +24,6 @@ exit_code: 0[1m[35mmain[0m [1m[35m./test-repo[0m [2me4614cb7[0m [2m10 months ago[0m [2mFix bug with café ☕ handling[0m[2mfeature-test[0m ∅ ↓ [2m[31m↓1[0m [2m./feature-test[0m [2m0c53695b[0m [2m10 months ago[0m [2mAdd support for 日本語 and émoji 🎉[0m-⚪ [2mShowing 2 worktrees, 1 behind[0m+⚪ [2mShowing 2 worktrees[0m----- stderr -----