patchy-cli 0.0.17-pr.218.b1c5a4e → 0.0.17-pr.219.fcee9f7
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.
- package/README.md +55 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -260,17 +260,18 @@ Note: `patchy generate` is destructive and will remove any unneeded files in the
|
|
|
260
260
|
|
|
261
261
|
### `patchy apply`
|
|
262
262
|
|
|
263
|
-
Apply patch files from `patches/` into `target_repo`. Patch sets are applied in alphabetical order.
|
|
263
|
+
Apply patch files from `patches/` into `target_repo`. Patch sets are applied in alphabetical order, with each patch set committed automatically.
|
|
264
264
|
|
|
265
265
|
```sh
|
|
266
|
-
patchy apply [--only <patch-set>] [--until <patch-set>] [--
|
|
266
|
+
patchy apply [--only <patch-set>] [--until <patch-set>] [--all] [--edit] [--target-repo] [--patches-dir] [--dry-run]
|
|
267
267
|
```
|
|
268
268
|
|
|
269
269
|
| Flag | Description |
|
|
270
270
|
|------|-------------|
|
|
271
271
|
| `--only <name>` | Apply only the specified patch set |
|
|
272
272
|
| `--until <name>` | Apply patch sets up to and including the specified one |
|
|
273
|
-
| `--
|
|
273
|
+
| `--all` | Commit all patch sets without prompting |
|
|
274
|
+
| `--edit` | Leave the last patch set uncommitted for manual review |
|
|
274
275
|
|
|
275
276
|
### `patchy repo reset`
|
|
276
277
|
|
|
@@ -313,6 +314,57 @@ patchy prime >> CLAUDE.md
|
|
|
313
314
|
|
|
314
315
|
Outputs a brief description of Patchy, key paths, and essential commands to help AI coding agents understand your project's patch workflow.
|
|
315
316
|
|
|
317
|
+
### `patchy config get <key>`
|
|
318
|
+
|
|
319
|
+
Output a single config value (raw, no label). Useful for shell scripts.
|
|
320
|
+
|
|
321
|
+
```sh
|
|
322
|
+
patchy config get target_repo_path # /home/user/project/clones/my-repo
|
|
323
|
+
patchy config get patch_set # 001-feature
|
|
324
|
+
patchy config get verbose # false
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
**Available keys:**
|
|
328
|
+
|
|
329
|
+
| Key | Description |
|
|
330
|
+
|-----|-------------|
|
|
331
|
+
| `source_repo` | Git URL or local file path |
|
|
332
|
+
| `target_repo` | Repository name or path |
|
|
333
|
+
| `clones_dir` | Directory for clones |
|
|
334
|
+
| `patches_dir` | Directory for patches |
|
|
335
|
+
| `patch_set` | Current patch set name |
|
|
336
|
+
| `base_revision` | Base SHA or tag |
|
|
337
|
+
| `upstream_branch` | Remote branch to track |
|
|
338
|
+
| `hook_prefix` | Hook script prefix |
|
|
339
|
+
| `verbose` | Verbose mode ("true"/"false") |
|
|
340
|
+
| `clones_dir_path` | Absolute path to clones directory |
|
|
341
|
+
| `target_repo_path` | Absolute path to target repository |
|
|
342
|
+
| `patches_dir_path` | Absolute path to patches directory |
|
|
343
|
+
| `patch_set_path` | Absolute path to current patch set |
|
|
344
|
+
|
|
345
|
+
- Unknown keys exit with code 1
|
|
346
|
+
- Unset raw keys exit with code 1
|
|
347
|
+
- Unset computed keys (e.g., `patch_set_path` when `patch_set` is not set) output an empty line
|
|
348
|
+
|
|
349
|
+
### `patchy config list`
|
|
350
|
+
|
|
351
|
+
Output all config values as aligned key-value pairs.
|
|
352
|
+
|
|
353
|
+
```sh
|
|
354
|
+
patchy config list
|
|
355
|
+
# source_repo https://github.com/example/repo.git
|
|
356
|
+
# target_repo my-repo
|
|
357
|
+
# clones_dir ./clones
|
|
358
|
+
# patches_dir ./patches
|
|
359
|
+
# patch_set 001-feature
|
|
360
|
+
# verbose false
|
|
361
|
+
# clones_dir_path /home/user/project/clones
|
|
362
|
+
# target_repo_path /home/user/project/clones/my-repo
|
|
363
|
+
# ...
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
Only defined values are shown. Computed path values are resolved to absolute paths.
|
|
367
|
+
|
|
316
368
|
## License
|
|
317
369
|
|
|
318
370
|
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "patchy-cli",
|
|
3
|
-
"version": "0.0.17-pr.
|
|
3
|
+
"version": "0.0.17-pr.219.fcee9f7",
|
|
4
4
|
"description": "A CLI tool for managing Git patch workflows.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"url": "https://github.com/richardgill/patchy"
|
|
65
65
|
},
|
|
66
66
|
"optionalDependencies": {
|
|
67
|
-
"patchy-cli-linux-x64": "0.0.17-pr.
|
|
68
|
-
"patchy-cli-linux-arm64": "0.0.17-pr.
|
|
69
|
-
"patchy-cli-darwin-x64": "0.0.17-pr.
|
|
70
|
-
"patchy-cli-darwin-arm64": "0.0.17-pr.
|
|
71
|
-
"patchy-cli-windows-x64": "0.0.17-pr.
|
|
67
|
+
"patchy-cli-linux-x64": "0.0.17-pr.219.fcee9f7",
|
|
68
|
+
"patchy-cli-linux-arm64": "0.0.17-pr.219.fcee9f7",
|
|
69
|
+
"patchy-cli-darwin-x64": "0.0.17-pr.219.fcee9f7",
|
|
70
|
+
"patchy-cli-darwin-arm64": "0.0.17-pr.219.fcee9f7",
|
|
71
|
+
"patchy-cli-windows-x64": "0.0.17-pr.219.fcee9f7"
|
|
72
72
|
},
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|