wtcode 0.4.0__tar.gz → 0.7.0__tar.gz
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.
- {wtcode-0.4.0/wtcode.egg-info → wtcode-0.7.0}/PKG-INFO +9 -4
- {wtcode-0.4.0 → wtcode-0.7.0}/README.md +8 -3
- {wtcode-0.4.0 → wtcode-0.7.0}/pyproject.toml +1 -1
- {wtcode-0.4.0 → wtcode-0.7.0}/wtcode/__init__.py +1 -1
- wtcode-0.7.0/wtcode/wtcode.sh +1031 -0
- {wtcode-0.4.0 → wtcode-0.7.0/wtcode.egg-info}/PKG-INFO +9 -4
- wtcode-0.4.0/wtcode/wtcode.sh +0 -531
- {wtcode-0.4.0 → wtcode-0.7.0}/LICENSE +0 -0
- {wtcode-0.4.0 → wtcode-0.7.0}/setup.cfg +0 -0
- {wtcode-0.4.0 → wtcode-0.7.0}/wtcode/__main__.py +0 -0
- {wtcode-0.4.0 → wtcode-0.7.0}/wtcode.egg-info/SOURCES.txt +0 -0
- {wtcode-0.4.0 → wtcode-0.7.0}/wtcode.egg-info/dependency_links.txt +0 -0
- {wtcode-0.4.0 → wtcode-0.7.0}/wtcode.egg-info/entry_points.txt +0 -0
- {wtcode-0.4.0 → wtcode-0.7.0}/wtcode.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wtcode
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0
|
|
4
4
|
Summary: Launch your favorite code tool in a git worktree
|
|
5
5
|
Author-email: Jaeho Shin <netj@sparcs.org>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -60,7 +60,7 @@ wtcode --exec CMD [CMD-ARGS...]
|
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
- **`BRANCH`** -- Git branch or worktree name. If omitted and [fzf](https://github.com/junegunn/fzf) is available, interactively select one. Surround with `:` to create a new branch (use `:::name` or `name:::` to avoid fzf matching the colons).
|
|
63
|
-
- **`CMD`** -- Command to launch in the worktree. Defaults to `$
|
|
63
|
+
- **`CMD`** -- Command to launch in the worktree. Defaults to `$WTCODE_TOOL`, or the first available of: `claude`, `aider`, `codex`, `$SHELL`.
|
|
64
64
|
When `CMD` resolves to plain `claude` (no extra args) in a worktree that already existed, wtcode launches `claude /resume` so it opens straight into your last session there. Press `Esc` in the picker to start a new session instead.
|
|
65
65
|
- **`--exec`** -- Skip the branch argument; select interactively via fzf, then launch `CMD`.
|
|
66
66
|
- **`--help`** / **`--version`** -- Show help or version info.
|
|
@@ -74,14 +74,19 @@ wtcode feature-x claude --resume # launch claude with flags
|
|
|
74
74
|
wtcode --exec claude --resume # select interactively, launch claude --resume
|
|
75
75
|
wtcode :new-feature # create new branch and worktree
|
|
76
76
|
wtcode # interactive branch selection via fzf
|
|
77
|
-
|
|
77
|
+
WTCODE_TOOL=cursor wtcode feature # use cursor as default tool
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
## Environment variables
|
|
81
81
|
|
|
82
82
|
| Variable | Description |
|
|
83
83
|
|---|---|
|
|
84
|
-
| `
|
|
84
|
+
| `WTCODE_TOOL` | Default tool to launch (e.g., `claude`, `lazygit`, `vim`, `cursor`); `WTCODE_CMD` is a deprecated alias |
|
|
85
|
+
| `WTCODE_USE_CURRENT_BRANCH` | When creating a brand-new branch, fork it from the current HEAD instead of the default: `origin/HEAD` (falling back to `origin/main`, then `origin/master`) |
|
|
86
|
+
| `WTCODE_BASE_REF` | Fork brand-new branches from this ref (also `wtcode --base REF`) |
|
|
87
|
+
| `WTCODE_BRANCH_SCOPE` | Initial picker scope: `all`, `worktree`, `local`, `remote` |
|
|
88
|
+
| `WTCODE_BRANCH_ORDER` | Initial picker order: `recent`, `name`, `full` (remote/name) |
|
|
89
|
+
| `WTCODE_STATE_FILE` | Where the picker remembers its last state (default `$XDG_STATE_HOME/wtcode/state`; empty disables) |
|
|
85
90
|
| `WTCODE_DEBUG` | Enable debug tracing when set to any value |
|
|
86
91
|
| `GIT_WORKTREE_ROOT` | Override the directory where worktrees are created |
|
|
87
92
|
|
|
@@ -42,7 +42,7 @@ wtcode --exec CMD [CMD-ARGS...]
|
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
- **`BRANCH`** -- Git branch or worktree name. If omitted and [fzf](https://github.com/junegunn/fzf) is available, interactively select one. Surround with `:` to create a new branch (use `:::name` or `name:::` to avoid fzf matching the colons).
|
|
45
|
-
- **`CMD`** -- Command to launch in the worktree. Defaults to `$
|
|
45
|
+
- **`CMD`** -- Command to launch in the worktree. Defaults to `$WTCODE_TOOL`, or the first available of: `claude`, `aider`, `codex`, `$SHELL`.
|
|
46
46
|
When `CMD` resolves to plain `claude` (no extra args) in a worktree that already existed, wtcode launches `claude /resume` so it opens straight into your last session there. Press `Esc` in the picker to start a new session instead.
|
|
47
47
|
- **`--exec`** -- Skip the branch argument; select interactively via fzf, then launch `CMD`.
|
|
48
48
|
- **`--help`** / **`--version`** -- Show help or version info.
|
|
@@ -56,14 +56,19 @@ wtcode feature-x claude --resume # launch claude with flags
|
|
|
56
56
|
wtcode --exec claude --resume # select interactively, launch claude --resume
|
|
57
57
|
wtcode :new-feature # create new branch and worktree
|
|
58
58
|
wtcode # interactive branch selection via fzf
|
|
59
|
-
|
|
59
|
+
WTCODE_TOOL=cursor wtcode feature # use cursor as default tool
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
## Environment variables
|
|
63
63
|
|
|
64
64
|
| Variable | Description |
|
|
65
65
|
|---|---|
|
|
66
|
-
| `
|
|
66
|
+
| `WTCODE_TOOL` | Default tool to launch (e.g., `claude`, `lazygit`, `vim`, `cursor`); `WTCODE_CMD` is a deprecated alias |
|
|
67
|
+
| `WTCODE_USE_CURRENT_BRANCH` | When creating a brand-new branch, fork it from the current HEAD instead of the default: `origin/HEAD` (falling back to `origin/main`, then `origin/master`) |
|
|
68
|
+
| `WTCODE_BASE_REF` | Fork brand-new branches from this ref (also `wtcode --base REF`) |
|
|
69
|
+
| `WTCODE_BRANCH_SCOPE` | Initial picker scope: `all`, `worktree`, `local`, `remote` |
|
|
70
|
+
| `WTCODE_BRANCH_ORDER` | Initial picker order: `recent`, `name`, `full` (remote/name) |
|
|
71
|
+
| `WTCODE_STATE_FILE` | Where the picker remembers its last state (default `$XDG_STATE_HOME/wtcode/state`; empty disables) |
|
|
67
72
|
| `WTCODE_DEBUG` | Enable debug tracing when set to any value |
|
|
68
73
|
| `GIT_WORKTREE_ROOT` | Override the directory where worktrees are created |
|
|
69
74
|
|