Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
fix: warn when --config path doesn't exist, fix shell quoting in docs (#895)
Maximilian Rooseca9beb232a8
diff --git a/.claude-plugin/skills/worktrunk/reference/hook.md b/.claude-plugin/skills/worktrunk/reference/hook.mdindex 449e51634..283a94153 100644--- a/.claude-plugin/skills/worktrunk/reference/hook.md+++ b/.claude-plugin/skills/worktrunk/reference/hook.md@@ -48,7 +48,7 @@ Triggers on all switch results: creating new worktrees, switching to existing on```toml[post-switch]-tmux = "[ -n \"$TMUX\" ] && tmux rename-window '{{ branch | sanitize }}'"+tmux = "[ -n \"$TMUX\" ] && tmux rename-window {{ branch | sanitize }}"```### pre-commit@@ -223,6 +223,8 @@ Hash any string, including concatenations:dev = "npm run dev --port {{ (repo ~ '-' ~ branch) | hash_port }}"```+Variables are shell-escaped automatically — quotes around `{{ ... }}` are unnecessary and can cause issues with special characters.+### Worktrunk functionsTemplates also support functions for dynamic lookups:@@ -378,9 +380,9 @@ Different actions for production vs staging:```tomlpost-merge = """-if [ "{{ target }}" = "main" ]; then+if [ {{ target }} = main ]; thennpm run deploy:production-elif [ "{{ target }}" = "staging" ]; then+elif [ {{ target }} = staging ]; thennpm run deploy:stagingfi"""diff --git a/.claude-plugin/skills/worktrunk/reference/tips-patterns.md b/.claude-plugin/skills/worktrunk/reference/tips-patterns.mdindex 8e6d330e6..2af95aa99 100644--- a/.claude-plugin/skills/worktrunk/reference/tips-patterns.md+++ b/.claude-plugin/skills/worktrunk/reference/tips-patterns.md@@ -212,8 +212,8 @@ Each worktree gets its own tmux session with a multi-pane layout. Sessions are n# .config/wt.toml[post-create]tmux = """-S="{{ branch | sanitize }}"-W="{{ worktree_path }}"+S={{ branch | sanitize }}+W={{ worktree_path }}tmux new-session -d -s "$S" -c "$W" -n dev# Create 4-pane layout: shell | backend / claude | frontend@@ -231,7 +231,7 @@ echo "✓ Session '$S' — attach with: tmux attach -t $S""""[pre-remove]-tmux = "tmux kill-session -t '{{ branch | sanitize }}' 2>/dev/null || true"+tmux = "tmux kill-session -t {{ branch | sanitize }} 2>/dev/null || true"````pre-remove` stops all services when the worktree is removed.diff --git a/docs/content/hook.md b/docs/content/hook.mdindex ae2a09a62..e2787af73 100644--- a/docs/content/hook.md+++ b/docs/content/hook.md@@ -56,7 +56,7 @@ Triggers on all switch results: creating new worktrees, switching to existing on```toml[post-switch]-tmux = "[ -n \"$TMUX\" ] && tmux rename-window '{{ branch | sanitize }}'"+tmux = "[ -n \"$TMUX\" ] && tmux rename-window {{ branch | sanitize }}"```### pre-commit@@ -231,6 +231,8 @@ Hash any string, including concatenations:dev = "npm run dev --port {{ (repo ~ '-' ~ branch) | hash_port }}"```+Variables are shell-escaped automatically — quotes around `{{ ... }}` are unnecessary and can cause issues with special characters.+### Worktrunk functionsTemplates also support functions for dynamic lookups:@@ -386,9 +388,9 @@ Different actions for production vs staging:```tomlpost-merge = """-if [ "{{ target }}" = "main" ]; then+if [ {{ target }} = main ]; thennpm run deploy:production-elif [ "{{ target }}" = "staging" ]; then+elif [ {{ target }} = staging ]; thennpm run deploy:stagingfi"""diff --git a/docs/content/tips-patterns.md b/docs/content/tips-patterns.mdindex c3d4fc0ed..b0cb20b85 100644--- a/docs/content/tips-patterns.md+++ b/docs/content/tips-patterns.md@@ -224,8 +224,8 @@ Each worktree gets its own tmux session with a multi-pane layout. Sessions are n# .config/wt.toml[post-create]tmux = """-S="{{ branch | sanitize }}"-W="{{ worktree_path }}"+S={{ branch | sanitize }}+W={{ worktree_path }}tmux new-session -d -s "$S" -c "$W" -n dev# Create 4-pane layout: shell | backend / claude | frontend@@ -243,7 +243,7 @@ echo "✓ Session '$S' — attach with: tmux attach -t $S""""[pre-remove]-tmux = "tmux kill-session -t '{{ branch | sanitize }}' 2>/dev/null || true"+tmux = "tmux kill-session -t {{ branch | sanitize }} 2>/dev/null || true"````pre-remove` stops all services when the worktree is removed.diff --git a/src/cli/mod.rs b/src/cli/mod.rsindex 541d6b974..f1f3d845f 100644--- a/src/cli/mod.rs+++ b/src/cli/mod.rs@@ -1086,7 +1086,7 @@ Triggers on all switch results: creating new worktrees, switching to existing on```toml[post-switch]-tmux = "[ -n \"$TMUX\" ] && tmux rename-window '{{ branch | sanitize }}'"+tmux = "[ -n \"$TMUX\" ] && tmux rename-window {{ branch | sanitize }}"```### pre-commit@@ -1261,6 +1261,8 @@ Hash any string, including concatenations:dev = "npm run dev --port {{ (repo ~ '-' ~ branch) | hash_port }}"```+Variables are shell-escaped automatically — quotes around `{{ ... }}` are unnecessary and can cause issues with special characters.+### Worktrunk functionsTemplates also support functions for dynamic lookups:@@ -1416,9 +1418,9 @@ Different actions for production vs staging:```tomlpost-merge = """-if [ "{{ target }}" = "main" ]; then+if [ {{ target }} = main ]; thennpm run deploy:production-elif [ "{{ target }}" = "staging" ]; then+elif [ {{ target }} = staging ]; thennpm run deploy:stagingfi"""diff --git a/src/config/user/mod.rs b/src/config/user/mod.rsindex 25b05d737..ba90e4f41 100644--- a/src/config/user/mod.rs+++ b/src/config/user/mod.rs@@ -152,6 +152,17 @@ impl UserConfig {}builder = builder.add_source(File::from(config_path.clone()));+ } else if let Some(config_path) = config_path.as_ref()+ && path::is_config_path_explicit()+ {+ // Warn if user explicitly specified a config path that doesn't exist+ crate::styling::eprintln!(+ "{}",+ crate::styling::warning_message(format!(+ "Config file not found: {}",+ config_path.display()+ ))+ );}// Add environment variables with WORKTRUNK prefixdiff --git a/src/config/user/path.rs b/src/config/user/path.rsindex 19f269695..f62bc01d5 100644--- a/src/config/user/path.rs+++ b/src/config/user/path.rs@@ -17,6 +17,15 @@ pub fn set_config_path(path: PathBuf) {CONFIG_PATH.set(path).ok();}+/// Check if the config path was explicitly specified via --config CLI flag.+///+/// Returns true only if --config flag was used. Environment variable+/// (WORKTRUNK_CONFIG_PATH) is not considered "explicit" because it's commonly+/// used for test/CI isolation with intentionally non-existent paths.+pub fn is_config_path_explicit() -> bool {+ CONFIG_PATH.get().is_some()+}+/// Get the user config file path.////// Priority:diff --git a/tests/integration_tests/config_show.rs b/tests/integration_tests/config_show.rsindex 145436529..a726a5c4e 100644--- a/tests/integration_tests/config_show.rs+++ b/tests/integration_tests/config_show.rs@@ -1,5 +1,6 @@use crate::common::{- TestRepo, repo, set_temp_home_env, setup_snapshot_settings_with_home, temp_home, wt_command,+ TestRepo, repo, set_temp_home_env, setup_snapshot_settings, setup_snapshot_settings_with_home,+ temp_home, wt_command,};use insta_cmd::assert_cmd_snapshot;use rstest::rstest;@@ -1750,3 +1751,20 @@ command = "llm -m gpt-4"migration_file);}++/// Test that explicitly specified --config path that doesn't exist shows a warning+#[rstest]+fn test_explicit_config_path_not_found_shows_warning(repo: TestRepo) {+ let settings = setup_snapshot_settings(&repo);+ settings.bind(|| {+ let mut cmd = wt_command();+ repo.configure_wt_cmd(&mut cmd);+ cmd.arg("--config")+ .arg("/nonexistent/worktrunk/config.toml")+ .arg("list")+ .current_dir(repo.root_path());++ // Should show warning about missing config file but still succeed+ assert_cmd_snapshot!(cmd);+ });+}diff --git a/tests/integration_tests/merge.rs b/tests/integration_tests/merge.rsindex 93b97aa54..09d4375dc 100644--- a/tests/integration_tests/merge.rs+++ b/tests/integration_tests/merge.rs@@ -2015,3 +2015,27 @@ fn test_step_rebase_accepts_tag(mut repo: TestRepo) {Some(&feature_wt)));}++// =============================================================================+// Behavior verification: --squash with --no-commit+// =============================================================================++/// Verify that `--squash` is correctly ignored when `--no-commit` is passed.+///+/// This is expected behavior: squashing creates a single commit from multiple+/// commits. If `--no-commit` is passed, there's no commit to create, so squash+/// has no effect. The merge proceeds as a fast-forward to the target.+#[rstest]+fn test_merge_squash_ignored_with_no_commit(repo_with_multi_commit_feature: TestRepo) {+ let repo = &repo_with_multi_commit_feature;+ let feature_wt = &repo.worktrees["feature"];++ // With --no-commit, squash has no effect - the merge fast-forwards+ // to main without creating any new commits+ assert_cmd_snapshot!(make_snapshot_cmd(+ repo,+ "merge",+ &["main", "--squash", "--no-commit", "--no-remove"],+ Some(feature_wt)+ ));+}diff --git a/tests/integration_tests/security.rs b/tests/integration_tests/security.rsindex 4d931635f..7de6ed8ff 100644--- a/tests/integration_tests/security.rs+++ b/tests/integration_tests/security.rs@@ -432,3 +432,109 @@ fn test_execute_flag_with_directive_like_branch_name(repo: TestRepo) {"Malicious code was executed alongside legitimate -x command!");}++// =============================================================================+// ANSI escape sequence handling in branch names+// =============================================================================++/// Test that git rejects branch names containing ANSI escape sequences.+///+/// ANSI escape sequences could theoretically corrupt terminal output if they+/// appeared in branch names displayed by `wt list`. However, git blocks this+/// at the ref validation level: control characters (bytes < 0x20 or 0x7F)+/// are rejected by git check-ref-format rule 4.+///+/// The escape character (`\x1b` = 27) is a control character, so git rejects it.+///+/// Note: Git for Windows with MSYS2 bash behaves differently and may accept+/// these branch names, so this test is Unix-only.+#[rstest]+#[cfg(unix)]+fn test_git_rejects_ansi_escape_in_branch_names(repo: TestRepo) {+ let shell_cmd = r#"git branch $'feature-\x1b[31mRED\x1b[0m-test'"#;++ let output = Command::new("bash")+ .args(["-c", shell_cmd])+ .current_dir(repo.root_path())+ .output()+ .unwrap();++ assert!(+ !output.status.success(),+ "Expected git to reject ANSI escape sequences in branch name"+ );++ let stderr = String::from_utf8_lossy(&output.stderr);+ assert!(+ stderr.contains("not a valid branch name") || stderr.contains("invalid"),+ "Expected git to complain about invalid branch name, got: {}",+ stderr+ );+}++/// Test that manually created refs with ANSI escapes are ignored by git.+///+/// Even if an attacker bypasses git's normal validation and creates a ref file+/// directly in .git/refs/heads/ with ANSI codes in the filename, git ignores it.+#[rstest]+#[cfg(unix)]+fn test_git_ignores_malformed_refs_with_ansi(repo: TestRepo) {+ let shell_cmd = r#"+ commit_sha=$(git rev-parse HEAD)+ printf "$commit_sha" > '.git/refs/heads/feature-'$'\x1b''[31mRED'$'\x1b''[0m-test'+ "#;++ let create_result = Command::new("bash")+ .args(["-c", shell_cmd])+ .current_dir(repo.root_path())+ .output()+ .unwrap();++ assert!(+ create_result.status.success(),+ "Failed to create malformed ref file: {}",+ String::from_utf8_lossy(&create_result.stderr)+ );++ // Git should ignore the malformed ref+ let branch_output = repo.git_output(&["branch", "-a"]);+ assert!(+ !branch_output.contains("RED"),+ "Malformed ref with ANSI escape should not appear in branch list"+ );++ // wt list should also not show it+ let settings = setup_snapshot_settings(&repo);+ settings.bind(|| {+ let mut cmd = wt_command();+ repo.configure_wt_cmd(&mut cmd);+ cmd.arg("list").current_dir(repo.root_path());+ assert_cmd_snapshot!(cmd);+ });+}++/// Test that literal escape-like text in branch names displays safely.+///+/// Branch names like "fix-backslash-x1b-test" contain literal characters+/// (not actual escape codes). Git allows this and they should display literally.+#[rstest]+fn test_literal_escape_like_branch_names_displayed_safely(repo: TestRepo) {+ let branch_name = "fix-backslash-x1b-test";++ let result = repo.git_command().args(["branch", branch_name]).output();++ if let Ok(output) = result+ && output.status.success()+ {+ let mut settings = setup_snapshot_settings(&repo);+ settings.add_filter(r"\b[0-9a-f]{7,40}\b", "[SHA]");++ settings.bind(|| {+ let mut cmd = wt_command();+ repo.configure_wt_cmd(&mut cmd);+ cmd.args(["list", "--branches"])+ .current_dir(repo.root_path());+ assert_cmd_snapshot!(cmd);+ });+ }+}diff --git a/tests/snapshots/integration__integration_tests__config_show__explicit_config_path_not_found_shows_warning.snap b/tests/snapshots/integration__integration_tests__config_show__explicit_config_path_not_found_shows_warning.snapnew file mode 100644index 000000000..1cb75c624--- /dev/null+++ b/tests/snapshots/integration__integration_tests__config_show__explicit_config_path_not_found_shows_warning.snap@@ -0,0 +1,47 @@+---+source: tests/integration_tests/config_show.rs+info:+ program: wt+ args:+ - "--config"+ - /nonexistent/worktrunk/config.toml+ - list+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "500"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ GIT_TERMINAL_PROMPT: "0"+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ MOCK_CONFIG_DIR: "[MOCK_CONFIG_DIR]"+ PATH: "[PATH]"+ RUST_LOG: warn+ SHELL: ""+ TERM: alacritty+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"+ WT_TEST_DELAYED_STREAM_MS: "-1"+ WT_TEST_EPOCH: "1735776000"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----+ [1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mPath[0m [1mRemote⇅[0m [1mCommit[0m [1mAge[0m [1mMessage+@ main [2m^[22m[2m|[22m . [2m|[0m [2m05a4a45d[0m [2m16h[0m [2mInitial commit++ feature-a [2m↑[22m [32m↑1[0m ../repo.feature-a [2m1b87d473[0m [2m16h[0m [2mAdd feature-a file++ feature-b [2m↑[22m [32m↑1[0m ../repo.feature-b [2mf62940fc[0m [2m16h[0m [2mAdd feature-b file++ feature-c [2m↑[22m [32m↑1[0m ../repo.feature-c [2m345c7c93[0m [2m16h[0m [2mAdd feature-c file++[2m○[22m [2mShowing 4 worktrees, 3 ahead++----- stderr -----+[33m▲[39m [33mConfig file not found: /nonexistent/worktrunk/config.toml[39mdiff --git a/tests/snapshots/integration__integration_tests__merge__merge_squash_ignored_with_no_commit.snap b/tests/snapshots/integration__integration_tests__merge__merge_squash_ignored_with_no_commit.snapnew file mode 100644index 000000000..1214204af--- /dev/null+++ b/tests/snapshots/integration__integration_tests__merge__merge_squash_ignored_with_no_commit.snap@@ -0,0 +1,49 @@+---+source: tests/integration_tests/merge.rs+info:+ program: wt+ args:+ - merge+ - main+ - "--squash"+ - "--no-commit"+ - "--no-remove"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "500"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ GIT_TERMINAL_PROMPT: "0"+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ MOCK_CONFIG_DIR: "[MOCK_CONFIG_DIR]"+ PATH: "[PATH]"+ RUST_LOG: warn+ SHELL: ""+ TERM: alacritty+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"+ WT_TEST_DELAYED_STREAM_MS: "-1"+ WT_TEST_EPOCH: "1735776000"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+[36m◎[39m [36mMerging 2 commits to [1mmain[22m @ [2m[HASH][22m (no commit/squash/rebase needed)[39m+[107m [0m * [33m[HASH][m feat: add file 2+[107m [0m * [33m[HASH][m feat: add file 1+[107m [0m file1.txt | 1 [32m+[m+[107m [0m file2.txt | 1 [32m+[m+[107m [0m 2 files changed, 2 insertions(+)+[32m✓[39m [32mMerged to [1mmain[22m [90m(2 commits, 2 files, [32m+2[39m[39m[90m)[39m[39m+[2m○[22m Worktree preserved (--no-remove)diff --git a/tests/snapshots/integration__integration_tests__security__git_ignores_malformed_refs_with_ansi.snap b/tests/snapshots/integration__integration_tests__security__git_ignores_malformed_refs_with_ansi.snapnew file mode 100644index 000000000..9982fdf65--- /dev/null+++ b/tests/snapshots/integration__integration_tests__security__git_ignores_malformed_refs_with_ansi.snap@@ -0,0 +1,44 @@+---+source: tests/integration_tests/security.rs+info:+ program: wt+ args:+ - list+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "500"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ GIT_TERMINAL_PROMPT: "0"+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ MOCK_CONFIG_DIR: "[MOCK_CONFIG_DIR]"+ PATH: "[PATH]"+ RUST_LOG: warn+ SHELL: ""+ TERM: alacritty+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"+ WT_TEST_DELAYED_STREAM_MS: "-1"+ WT_TEST_EPOCH: "1735776000"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----+ [1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mPath[0m [1mRemote⇅[0m [1mCommit[0m [1mAge[0m [1mMessage+@ main [2m^[22m[2m|[22m . [2m|[0m [2m05a4a45d[0m [2m16h[0m [2mInitial commit++ feature-a [2m↑[22m [32m↑1[0m ../repo.feature-a [2m1b87d473[0m [2m16h[0m [2mAdd feature-a file++ feature-b [2m↑[22m [32m↑1[0m ../repo.feature-b [2mf62940fc[0m [2m16h[0m [2mAdd feature-b file++ feature-c [2m↑[22m [32m↑1[0m ../repo.feature-c [2m345c7c93[0m [2m16h[0m [2mAdd feature-c file++[2m○[22m [2mShowing 4 worktrees, 3 ahead++----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__security__literal_escape_like_branch_names_displayed_safely.snap b/tests/snapshots/integration__integration_tests__security__literal_escape_like_branch_names_displayed_safely.snapnew file mode 100644index 000000000..e5ff1fec3--- /dev/null+++ b/tests/snapshots/integration__integration_tests__security__literal_escape_like_branch_names_displayed_safely.snap@@ -0,0 +1,46 @@+---+source: tests/integration_tests/security.rs+info:+ program: wt+ args:+ - list+ - "--branches"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "500"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ GIT_TERMINAL_PROMPT: "0"+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ MOCK_CONFIG_DIR: "[MOCK_CONFIG_DIR]"+ PATH: "[PATH]"+ RUST_LOG: warn+ SHELL: ""+ TERM: alacritty+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"+ WT_TEST_DELAYED_STREAM_MS: "-1"+ WT_TEST_EPOCH: "1735776000"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----+ [1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mPath[0m [1mRemote⇅[0m [1mCommit[0m [1mAge[0m [1mMessage+@ main [2m^[22m[2m|[22m . [2m|[0m [2m05a4a45d[0m [2m16h[0m [2mInitial commit++ feature-a [2m↑[22m [32m↑1[0m ../repo.feature-a [2m1b87d473[0m [2m16h[0m [2mAdd feature-a file++ feature-b [2m↑[22m [32m↑1[0m ../repo.feature-b [2mf62940fc[0m [2m16h[0m [2mAdd feature-b file++ feature-c [2m↑[22m [32m↑1[0m ../repo.feature-c [2m345c7c93[0m [2m16h[0m [2mAdd feature-c file+ [2mfix-backslash-x1b-test[0m [2m/[22m[2m_[22m [2m05a4a45d[0m [2m16h[0m [2mInitial commit++[2m○[22m [2mShowing 4 worktrees, 1 branches, 3 ahead++----- stderr -----