@kianax/wt 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +18 -5
  2. package/dist/cli.js +94 -94
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -79,6 +79,7 @@ wt current --branch # Branch name
79
79
  | `d` | Delete worktree |
80
80
  | `r` | Rename worktree |
81
81
  | `i` | Show details |
82
+ | `s` | Settings |
82
83
  | `q` | Quit |
83
84
 
84
85
  ## Status Indicators
@@ -88,14 +89,26 @@ The TUI shows status for each worktree:
88
89
  | Status | Meaning |
89
90
  |--------|---------|
90
91
  | `dirty` | Uncommitted changes |
91
- | `ahead` | Commits to push |
92
- | `behind` | Commits to pull |
92
+ | `ahead` | Commits ahead of comparison branch |
93
+ | `behind` | Commits behind comparison branch |
93
94
  | `diverged` | Both ahead and behind |
94
- | `synced` | Clean and up-to-date |
95
- | `merged` | Branch merged, can be cleaned up |
95
+ | `synced` | Up-to-date with comparison branch |
96
+ | `merged` | Branch merged into comparison branch |
96
97
  | `stale` | No commits in 30+ days |
97
98
 
98
- Sync indicators show commit counts: `+3` (ahead) `-2` (behind)
99
+ Sync status compares against `origin/main` by default (using local refs—no fetch). Falls back to `origin/master`, then local `main`/`master` if remote doesn't exist.
100
+
101
+ Press `i` on a worktree to see which branch it's comparing against (e.g., `↑3 ahead (vs origin/main)`).
102
+
103
+ To customize the comparison branch, press `s` to open Settings or edit `~/.config/wt/config.json`:
104
+
105
+ ```json
106
+ {
107
+ "defaults": {
108
+ "comparisonBranch": "origin/develop"
109
+ }
110
+ }
111
+ ```
99
112
 
100
113
  ## How It Works
101
114