Skip to content

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

Fix test determinism and README sync (#52)

Maximilian Roosb2337db118b6
diff --git a/README.md b/README.md
index be91b2d12..781b62f64 100644
--- a/README.md
+++ b/README.md
@@ -64,9 +64,9 @@ merge, cleanup.
```console
$ wt list
Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^ ./repo ⇡0 ⇣0 e6fd2060 1d Initial commit
-+ feature-x + ↑ +5 ↑3 ./repo.feature-x d840828e 1h Add file 3
-+ bugfix-y ↑ ↑1 ./repo.bugfix-y 22f1aa87 2h Fix bug
+@ main ^ ./repo ⇡0 ⇣0 b834638e 1d Initial commit
++ feature-x + ↑ +5 ↑3 ./repo.feature-x 6bba16d6 1h Add file 3
++ bugfix-y ↑ ↑1 ./repo.bugfix-y bafa4cbd 2h Fix bug
⚪ Showing 3 worktrees, 1 with changes, 2 ahead
```
@@ -256,7 +256,7 @@ $ wt merge
Implement login and token refresh endpoints with JWT validation.
Includes comprehensive test coverage and input validation.
-✅ Squashed @ [HASH]
+✅ Squashed @ a1b2c3d
🔄 Running pre-merge test:
uv run pytest
@@ -274,8 +274,8 @@ tests/test_auth.py::test_token_validation PASSED [100%]
All checks passed!
-🔄 Merging 1 commit to main @ [HASH] (no rebase needed)
- * [HASH] feat(api): Add user authentication endpoints
+🔄 Merging 1 commit to main @ a1b2c3d (no rebase needed)
+ * a1b2c3d feat(api): Add user authentication endpoints
api/auth.py | 31 +++++++++++++++++++++++++++++++
tests/test_auth.py | 14 ++++++++++++++
2 files changed, 45 insertions(+)
@@ -960,11 +960,11 @@ git config worktrunk.status.feature-x "💬"
```console
$ wt list
Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^ ./repo e6fd2060 1d Initial commit
-+ clean-no-status _ ./repo.clean-no-status e6fd2060 1d Initial commit
-+ clean-with-status _ 💬 ./repo.clean-with-status e6fd2060 1d Initial commit
-+ dirty-no-status ! +1 -1 ./repo.dirty-no-status e6fd2060 1d Initial commit
-+ dirty-with-status ?_ 🤖 ./repo.dirty-with-status e6fd2060 1d Initial commit
+@ main ^ ./repo b834638e 1d Initial commit
++ clean-no-status _ ./repo.clean-no-status b834638e 1d Initial commit
++ clean-with-status _ 💬 ./repo.clean-with-status b834638e 1d Initial commit
++ dirty-no-status ! +1 -1 ./repo.dirty-no-status b834638e 1d Initial commit
++ dirty-with-status ?_ 🤖 ./repo.dirty-with-status b834638e 1d Initial commit
⚪ Showing 5 worktrees, 1 with changes
```
@@ -989,11 +989,11 @@ When using Claude:
```console
$ wt list
Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^ ./repo e6fd2060 1d Initial commit
-+ clean-no-status _ ./repo.clean-no-status e6fd2060 1d Initial commit
-+ clean-with-status _ 💬 ./repo.clean-with-status e6fd2060 1d Initial commit
-+ dirty-no-status ! +1 -1 ./repo.dirty-no-status e6fd2060 1d Initial commit
-+ dirty-with-status ?_ 🤖 ./repo.dirty-with-status e6fd2060 1d Initial commit
+@ main ^ ./repo b834638e 1d Initial commit
++ clean-no-status _ ./repo.clean-no-status b834638e 1d Initial commit
++ clean-with-status _ 💬 ./repo.clean-with-status b834638e 1d Initial commit
++ dirty-no-status ! +1 -1 ./repo.dirty-no-status b834638e 1d Initial commit
++ dirty-with-status ?_ 🤖 ./repo.dirty-with-status b834638e 1d Initial commit
⚪ Showing 5 worktrees, 1 with changes
```
diff --git a/tests/common/list_snapshots.rs b/tests/common/list_snapshots.rs
index dcead5aff..482a2e6f3 100644
--- a/tests/common/list_snapshots.rs
+++ b/tests/common/list_snapshots.rs
@@ -1,38 +1,15 @@
-use super::{TestRepo, wt_command};
+use super::{TestRepo, setup_snapshot_settings, wt_command};
use insta::Settings;
use std::path::Path;
use std::process::Command;
-fn base_settings(repo: &TestRepo) -> Settings {
- let mut settings = Settings::clone_current();
- settings.set_snapshot_path("../snapshots");
- normalize_worktree_paths(&mut settings, repo);
- settings.add_filter(r"\\", "/");
-
- // Redact volatile metadata captured by insta-cmd (same as common::setup_snapshot_settings)
- settings.add_redaction(".env.GIT_CONFIG_GLOBAL", "[TEST_GIT_CONFIG]");
- settings.add_redaction(".env.WORKTRUNK_CONFIG_PATH", "[TEST_CONFIG]");
- settings.add_redaction(".env.HOME", "[TEST_HOME]");
- settings.add_redaction(".env.XDG_CONFIG_HOME", "[TEST_CONFIG_HOME]");
- settings.add_redaction(".env.PATH", "[PATH]");
-
- settings
-}
-
pub fn standard_settings(repo: &TestRepo) -> Settings {
- let mut settings = base_settings(repo);
- // Normalize WORKTRUNK_CONFIG_PATH across platforms (macOS, Linux, Windows)
- // macOS: /var/folders/.../T/.tmpXXX/test-config.toml
- // Linux: /tmp/.tmpXXX/test-config.toml
- settings.add_filter(
- r"(/var/folders/[^/]+/[^/]+/T/\.tmp[^/]+|/tmp/\.tmp[^/]+)/test-config\.toml",
- "[TEST_CONFIG]",
- );
- settings
+ setup_snapshot_settings(repo)
}
pub fn json_settings(repo: &TestRepo) -> Settings {
- let mut settings = base_settings(repo);
+ let mut settings = setup_snapshot_settings(repo);
+ // JSON-specific filters for timestamps and escaped ANSI codes
settings.add_filter(r#""timestamp": \d+"#, r#""timestamp": 0"#);
settings.add_filter(r"\\u001b\[32m", "[GREEN]");
settings.add_filter(r"\\u001b\[31m", "[RED]");
@@ -126,20 +103,3 @@ pub fn command_task_dag_from_dir(repo: &TestRepo, cwd: &Path) -> Command {
cmd.args(["list", "--progressive"]).current_dir(cwd);
cmd
}
-
-fn normalize_worktree_paths(settings: &mut Settings, repo: &TestRepo) {
- // Canonicalize to handle macOS /var -> /private/var symlink
- let root_canonical = repo
- .root_path()
- .canonicalize()
- .unwrap_or_else(|_| repo.root_path().to_path_buf());
- settings.add_filter(&regex::escape(root_canonical.to_str().unwrap()), "[REPO]");
-
- for (name, path) in &repo.worktrees {
- let canonical = path.canonicalize().unwrap_or_else(|_| path.clone());
- settings.add_filter(
- &regex::escape(canonical.to_str().unwrap()),
- format!("[WORKTREE_{}]", name.to_uppercase().replace('-', "_")),
- );
- }
-}
diff --git a/tests/common/mod.rs b/tests/common/mod.rs
index 1ffb45c41..f2ae2d255 100644
--- a/tests/common/mod.rs
+++ b/tests/common/mod.rs
@@ -324,9 +324,14 @@ impl TestRepo {
/// Create a commit with a custom message (useful for testing malicious messages)
pub fn commit_with_message(&self, message: &str) {
- // Create a unique file based on message length (deterministic for reproducible SHAs)
- // Use message bytes as a simple deterministic identifier
- let file_path = self.root.join(format!("file-msg-{}.txt", message.len()));
+ // Create file with message-derived name for deterministic commits
+ // Use first 16 chars of message (sanitized) as filename
+ let sanitized: String = message
+ .chars()
+ .filter(|c| c.is_alphanumeric() || *c == '_' || *c == '-')
+ .take(16)
+ .collect();
+ let file_path = self.root.join(format!("file-{}.txt", sanitized));
std::fs::write(&file_path, message).unwrap();
self.git_command(&["add", "."]).output().unwrap();
@@ -353,9 +358,11 @@ impl TestRepo {
/// ```
pub fn commit_with_age(&self, message: &str, age_seconds: i64) {
// SOURCE_DATE_EPOCH used in tests - must match configure_git_cmd/test_env_vars
+ // This is Jan 2, 2025 00:00:00 UTC
const SOURCE_DATE_EPOCH: i64 = 1735776000;
let commit_time = SOURCE_DATE_EPOCH - age_seconds;
- let timestamp = format!("@{}", commit_time);
+ // Use ISO 8601 format for consistent behavior across git versions
+ let timestamp = unix_to_iso8601(commit_time);
// Use file.txt like commit() does - allows multiple commits to the same file
let file_path = self.root.join("file.txt");
@@ -389,9 +396,11 @@ impl TestRepo {
/// ```
pub fn commit_with_age_in(&self, message: &str, age_seconds: i64, dir: &Path) {
// SOURCE_DATE_EPOCH used in tests - must match configure_git_cmd/test_env_vars
+ // This is Jan 2, 2025 00:00:00 UTC
const SOURCE_DATE_EPOCH: i64 = 1735776000;
let commit_time = SOURCE_DATE_EPOCH - age_seconds;
- let timestamp = format!("@{}", commit_time);
+ // Use ISO 8601 format for consistent behavior across git versions
+ let timestamp = unix_to_iso8601(commit_time);
// Use file.txt with message as content - deterministic for same message
let file_path = dir.join("file.txt");
@@ -733,16 +742,21 @@ pub fn setup_snapshot_settings(repo: &TestRepo) -> insta::Settings {
settings.add_filter(&regex::escape(root.to_str().unwrap()), "[PROJECT_ROOT]");
}
- // Normalize paths (escape for regex to handle Windows backslashes)
- settings.add_filter(&regex::escape(repo.root_path().to_str().unwrap()), "[REPO]");
+ // Normalize paths (canonicalize for macOS /var -> /private/var symlink)
+ let root_canonical = repo
+ .root_path()
+ .canonicalize()
+ .unwrap_or_else(|_| repo.root_path().to_path_buf());
+ settings.add_filter(&regex::escape(root_canonical.to_str().unwrap()), "[REPO]");
for (name, path) in &repo.worktrees {
+ let canonical = path.canonicalize().unwrap_or_else(|_| path.clone());
settings.add_filter(
- &regex::escape(path.to_str().unwrap()),
+ &regex::escape(canonical.to_str().unwrap()),
format!("[WORKTREE_{}]", name.to_uppercase().replace('-', "_")),
);
}
- // Normalize backslashes (Windows paths)
+ // Normalize backslashes for Windows compatibility
settings.add_filter(r"\\", "/");
// Normalize temp directory paths in project identifiers (approval prompts)
@@ -802,6 +816,11 @@ pub fn setup_snapshot_settings(repo: &TestRepo) -> insta::Settings {
// when capturing stderr from shell commands due to timing/buffering differences
settings.add_filter(r"Broken pipe \(os error 32\)", "Error: connection refused");
+ // Normalize OS-specific error messages in gutter output
+ // Ubuntu may produce "Broken pipe (os error 32)" instead of the expected error
+ // when capturing stderr from shell commands due to timing/buffering differences
+ settings.add_filter(r"Broken pipe \(os error 32\)", "Error: connection refused");
+
settings
}
@@ -1058,10 +1077,78 @@ pub fn wait_for_file_lines(path: &Path, expected_lines: usize, timeout: std::tim
);
}
+/// Convert Unix timestamp to ISO 8601 format for consistent git date handling
+///
+/// Git interprets `@timestamp` format inconsistently across versions and platforms.
+/// Using ISO 8601 format ensures deterministic commit SHAs across all environments.
+fn unix_to_iso8601(timestamp: i64) -> String {
+ // Calculate date components from Unix timestamp
+ let days_since_epoch = timestamp / 86400;
+ let seconds_in_day = timestamp % 86400;
+
+ let hours = seconds_in_day / 3600;
+ let minutes = (seconds_in_day % 3600) / 60;
+ let seconds = seconds_in_day % 60;
+
+ // Calculate year, month, day from days since Unix epoch (1970-01-01)
+ // Simplified algorithm: account for leap years
+ let mut year = 1970i64;
+ let mut remaining_days = days_since_epoch;
+
+ loop {
+ let days_in_year = if is_leap_year(year) { 366 } else { 365 };
+ if remaining_days < days_in_year {
+ break;
+ }
+ remaining_days -= days_in_year;
+ year += 1;
+ }
+
+ let days_in_months: [i64; 12] = if is_leap_year(year) {
+ [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
+ } else {
+ [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
+ };
+
+ let mut month = 1;
+ for &days in &days_in_months {
+ if remaining_days < days {
+ break;
+ }
+ remaining_days -= days;
+ month += 1;
+ }
+
+ let day = remaining_days + 1; // Days are 1-indexed
+
+ format!(
+ "{:04}-{:02}-{:02}T{:02}:{:02}:{:02}Z",
+ year, month, day, hours, minutes, seconds
+ )
+}
+
+fn is_leap_year(year: i64) -> bool {
+ (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)
+}
+
#[cfg(test)]
mod tests {
use super::*;
+ #[test]
+ fn test_unix_to_iso8601() {
+ // 2025-01-01T00:00:00Z
+ assert_eq!(unix_to_iso8601(1735689600), "2025-01-01T00:00:00Z");
+ // 2025-01-02T00:00:00Z (SOURCE_DATE_EPOCH)
+ assert_eq!(unix_to_iso8601(1735776000), "2025-01-02T00:00:00Z");
+ // 2024-12-31T00:00:00Z (one day before 2025-01-01)
+ assert_eq!(unix_to_iso8601(1735603200), "2024-12-31T00:00:00Z");
+ // Unix epoch
+ assert_eq!(unix_to_iso8601(0), "1970-01-01T00:00:00Z");
+ // Leap year: 2024-02-29
+ assert_eq!(unix_to_iso8601(1709164800), "2024-02-29T00:00:00Z");
+ }
+
#[test]
fn test_commit_with_age() {
let repo = TestRepo::new();
diff --git a/tests/integration_tests/readme_sync.rs b/tests/integration_tests/readme_sync.rs
index ebe33a21d..55ec1212d 100644
--- a/tests/integration_tests/readme_sync.rs
+++ b/tests/integration_tests/readme_sync.rs
@@ -14,9 +14,10 @@ use std::sync::LazyLock;
/// Regex to find README snapshot markers
/// Format: <!-- ⚠️ AUTO-GENERATED from path.snap — edit source to update -->
+/// Captures: (1) snapshot path, (2) command line (e.g., "$ wt merge"), (3) content
static SNAPSHOT_MARKER_PATTERN: LazyLock<Regex> = LazyLock::new(|| {
Regex::new(
- r"(?s)<!-- ⚠️ AUTO-GENERATED from ([^\s]+\.snap) — edit source to update -->\n+```\w*\n(?:\$ [^\n]+\n)?(.*?)```\n+<!-- END AUTO-GENERATED -->",
+ r"(?s)<!-- ⚠️ AUTO-GENERATED from ([^\s]+\.snap) — edit source to update -->\n+```\w*\n(\$ [^\n]+)\n(.*?)```\n+<!-- END AUTO-GENERATED -->",
)
.unwrap()
});
@@ -34,6 +35,9 @@ static ANSI_ESCAPE_REGEX: LazyLock<Regex> =
/// Regex to strip literal bracket notation (as stored in snapshots)
static ANSI_LITERAL_REGEX: LazyLock<Regex> = LazyLock::new(|| Regex::new(r"\[[0-9;]*m").unwrap());
+/// Regex for HASH placeholder (used by shell_wrapper tests)
+static HASH_REGEX: LazyLock<Regex> = LazyLock::new(|| Regex::new(r"\[HASH\]").unwrap());
+
/// Regex for TMPDIR paths
static TMPDIR_REGEX: LazyLock<Regex> =
LazyLock::new(|| Regex::new(r"\[TMPDIR\]/repo\.([^\s/]+)").unwrap());
@@ -208,16 +212,20 @@ fn parse_snapshot(path: &Path) -> Result<String, String> {
/// Normalize snapshot output for README display
fn normalize_for_readme(content: &str) -> String {
- let content = TMPDIR_REGEX.replace_all(content, "../repo.$1");
+ // Real SHAs flow through from deterministic tests (fixed dates + git identity)
+ let content = HASH_REGEX.replace_all(content, "a1b2c3d");
+ let content = TMPDIR_REGEX.replace_all(&content, "../repo.$1");
let content = REPO_REGEX.replace_all(&content, "../repo");
- // Trim trailing whitespace from each line and overall (matches pre-commit behavior)
+ // Trim trailing whitespace from each line and overall trailing newlines
+ // NOTE: We use trim_end() not trim() to preserve leading spaces on the first line
+ // (e.g., the two-space gutter before table headers in `wt list` output)
content
.lines()
.map(|line| line.trim_end())
.collect::<Vec<_>>()
.join("\n")
- .trim()
+ .trim_end()
.to_string()
}
@@ -228,7 +236,7 @@ fn normalize_readme_content(content: &str) -> String {
.map(|line| line.trim_end())
.collect::<Vec<_>>()
.join("\n")
- .trim()
+ .trim_end()
.to_string()
}
@@ -472,15 +480,29 @@ fn test_readme_examples_are_in_sync() {
let mut updated_content = readme_content.clone();
let mut total_updated = 0;
- // Check snapshot markers
- for cap in SNAPSHOT_MARKER_PATTERN.captures_iter(&readme_content) {
- let snap_path = cap.get(1).unwrap().as_str();
- let current_content = normalize_readme_content(cap.get(2).unwrap().as_str());
- checked += 1;
+ // Update snapshot markers (preserving command lines)
+ let matches: Vec<_> = SNAPSHOT_MARKER_PATTERN
+ .captures_iter(&updated_content.clone())
+ .map(|cap| {
+ let full_match = cap.get(0).unwrap();
+ let snap_path = cap.get(1).unwrap().as_str().to_string();
+ let command_line = cap.get(2).unwrap().as_str().to_string();
+ let current = normalize_readme_content(cap.get(3).unwrap().as_str());
+ (
+ full_match.start(),
+ full_match.end(),
+ snap_path,
+ command_line,
+ current,
+ )
+ })
+ .collect();
- let full_path = project_root.join(snap_path);
+ checked += matches.len();
- // Parse and normalize the snapshot
+ // Process in reverse order to preserve positions
+ for (start, end, snap_path, command_line, current) in matches.into_iter().rev() {
+ let full_path = project_root.join(&snap_path);
let expected = match parse_snapshot(&full_path) {
Ok(content) => normalize_for_readme(&content),
Err(e) => {
@@ -489,12 +511,13 @@ fn test_readme_examples_are_in_sync() {
}
};
- // Compare
- if current_content != expected {
- errors.push(format!(
- "❌ {} is out of sync\n\n--- Current (in README) ---\n{}\n\n--- Expected (from snapshot) ---\n{}\n",
- snap_path, current_content, expected
- ));
+ if current != expected {
+ let replacement = format!(
+ "<!-- ⚠️ AUTO-GENERATED from {} — edit source to update -->\n\n```console\n{}\n{}\n```\n\n<!-- END AUTO-GENERATED -->",
+ snap_path, command_line, expected
+ );
+ updated_content.replace_range(start..end, &replacement);
+ total_updated += 1;
}
}
diff --git a/tests/snapshots/integration__integration_tests__list__json_with_user_status.snap b/tests/snapshots/integration__integration_tests__list__json_with_user_status.snap
index cbf892531..bc8e16361 100644
--- a/tests/snapshots/integration__integration_tests__list__json_with_user_status.snap
+++ b/tests/snapshots/integration__integration_tests__list__json_with_user_status.snap
@@ -24,7 +24,7 @@ exit_code: 0
----- stdout -----
[
{
- "head_sha": "e6fd20606574fd9fa70e05e84654c7be500cda38",
+ "head_sha": "b834638e33dbc6b37002685ee0777f4b8f1af904",
"branch": "main",
"timestamp": 0,
"commit_message": "Initial commit",
@@ -75,7 +75,7 @@ exit_code: 0
"is_current": true
},
{
- "head_sha": "e6fd20606574fd9fa70e05e84654c7be500cda38",
+ "head_sha": "b834638e33dbc6b37002685ee0777f4b8f1af904",
"branch": "with-status",
"timestamp": 0,
"commit_message": "Initial commit",
@@ -127,7 +127,7 @@ exit_code: 0
"is_main": false
},
{
- "head_sha": "e6fd20606574fd9fa70e05e84654c7be500cda38",
+ "head_sha": "b834638e33dbc6b37002685ee0777f4b8f1af904",
"branch": "without-status",
"timestamp": 0,
"commit_message": "Initial commit",
diff --git a/tests/snapshots/integration__integration_tests__list__readme_example_simple_list.snap b/tests/snapshots/integration__integration_tests__list__readme_example_simple_list.snap
index 623dda803..eb9f85364 100644
--- a/tests/snapshots/integration__integration_tests__list__readme_example_simple_list.snap
+++ b/tests/snapshots/integration__integration_tests__list__readme_example_simple_list.snap
@@ -24,8 +24,8 @@ exit_code: 0
----- stderr -----
Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^ ./repo ⇡0 ⇣0 e6fd2060 1d Initial commit
-+ feature-x + ↑ +5 ↑3 ./repo.feature-x d840828e 1h Add file 3
-+ bugfix-y ↑ ↑1 ./repo.bugfix-y 22f1aa87 2h Fix bug
+@ main ^ ./repo ⇡0 ⇣0 b834638e 1d Initial commit
++ feature-x + ↑ +5 ↑3 ./repo.feature-x 6bba16d6 1h Add file 3
++ bugfix-y ↑ ↑1 ./repo.bugfix-y bafa4cbd 2h Fix bug
⚪ Showing 3 worktrees, 1 with changes, 2 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__with_user_status.snap b/tests/snapshots/integration__integration_tests__list__with_user_status.snap
index e78121e9b..839bcbcda 100644
--- a/tests/snapshots/integration__integration_tests__list__with_user_status.snap
+++ b/tests/snapshots/integration__integration_tests__list__with_user_status.snap
@@ -24,10 +24,10 @@ exit_code: 0
----- stderr -----
Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^ ./repo e6fd2060 1d Initial commit
-+ clean-no-status _ ./repo.clean-no-status e6fd2060 1d Initial commit
-+ clean-with-status _ 💬 ./repo.clean-with-status e6fd2060 1d Initial commit
-+ dirty-no-status ! +1 -1 ./repo.dirty-no-status e6fd2060 1d Initial commit
-+ dirty-with-status ?_ 🤖 ./repo.dirty-with-status e6fd2060 1d Initial commit
+@ main ^ ./repo b834638e 1d Initial commit
++ clean-no-status _ ./repo.clean-no-status b834638e 1d Initial commit
++ clean-with-status _ 💬 ./repo.clean-with-status b834638e 1d Initial commit
++ dirty-no-status ! +1 -1 ./repo.dirty-no-status b834638e 1d Initial commit
++ dirty-with-status ?_ 🤖 ./repo.dirty-with-status b834638e 1d Initial commit
⚪ Showing 5 worktrees, 1 with changes
diff --git a/tests/snapshots/integration__integration_tests__security__commit_message_with_directive_not_executed.snap b/tests/snapshots/integration__integration_tests__security__commit_message_with_directive_not_executed.snap
index 470b2bf1b..e3521343d 100644
--- a/tests/snapshots/integration__integration_tests__security__commit_message_with_directive_not_executed.snap
+++ b/tests/snapshots/integration__integration_tests__security__commit_message_with_directive_not_executed.snap
@@ -24,7 +24,7 @@ exit_code: 0
----- stderr -----
Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^ ./repo 584d9a09 1d Fix bug __WORKTRUNK_EXEC__echo PWNED > /tmp/hacked4
-+ feature _ ./repo.feature 584d9a09 1d Fix bug __WORKTRUNK_EXEC__echo PWNED > /tmp/hacked4
+@ main ^ ./repo f9d58892 1d Fix bug __WORKTRUNK_EXEC__echo PWNED > /tmp/hacked4
++ feature _ ./repo.feature f9d58892 1d Fix bug __WORKTRUNK_EXEC__echo PWNED > /tmp/hacked4
⚪ Showing 2 worktrees