patchy-cli 0.0.9-pr.179.a2f2b32 → 0.0.9-pr.180.2f54d90
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 +14 -21
- package/package.json +6 -6
- package/schema.json +1 -4
package/README.md
CHANGED
|
@@ -46,8 +46,7 @@ Create a folder for the fork: `mkdir spoon-knife-fork && cd spoon-knife-fork`
|
|
|
46
46
|
"patches_dir": "./patches/",
|
|
47
47
|
"clones_dir": "./clones/",
|
|
48
48
|
"target_repo": "spoon-knife",
|
|
49
|
-
"
|
|
50
|
-
"upstream_branch": "main"
|
|
49
|
+
"ref": "main"
|
|
51
50
|
}
|
|
52
51
|
```
|
|
53
52
|
|
|
@@ -95,7 +94,7 @@ Patchy will prompt you to create your first **patch set**, let's name it: 'first
|
|
|
95
94
|
|
|
96
95
|
### Reapplying patches:
|
|
97
96
|
|
|
98
|
-
Reset the current upstream repo
|
|
97
|
+
Reset the current upstream repo `patchy repo reset main`, which will reset everything to `main`:
|
|
99
98
|
|
|
100
99
|
```
|
|
101
100
|
./
|
|
@@ -176,11 +175,8 @@ patchy init
|
|
|
176
175
|
// If not set, prompts interactively or errors in non-interactive mode.
|
|
177
176
|
"patch_set": "001-security-fixes", // Override: --patch-set | env: PATCHY_PATCH_SET
|
|
178
177
|
|
|
179
|
-
// Git
|
|
180
|
-
"
|
|
181
|
-
|
|
182
|
-
// Remote branch to track for updates (e.g., "main"). Used by `patchy base` to find new commits/tags.
|
|
183
|
-
"upstream_branch": "main" // Override: --upstream-branch | env: PATCHY_UPSTREAM_BRANCH
|
|
178
|
+
// Git ref to checkout (branch, tag, SHA).
|
|
179
|
+
"ref": "main" // Override: --ref | env: PATCHY_REF
|
|
184
180
|
}
|
|
185
181
|
```
|
|
186
182
|
Precedence: CLI flags > Environment variables > `patchy.json`
|
|
@@ -227,42 +223,39 @@ Note: `patchy generate` is destructive and will remove any unneeded files in the
|
|
|
227
223
|
|
|
228
224
|
### `patchy apply`
|
|
229
225
|
|
|
230
|
-
Apply patch files from `patches/` into `target_repo`. Patch sets are applied in alphabetical order
|
|
226
|
+
Apply patch files from `patches/` into `target_repo`. Patch sets are applied in alphabetical order.
|
|
231
227
|
|
|
232
228
|
```sh
|
|
233
|
-
patchy apply [--only <patch-set>] [--until <patch-set>] [--
|
|
229
|
+
patchy apply [--only <patch-set>] [--until <patch-set>] [--target-repo] [--patches-dir] [--dry-run]
|
|
234
230
|
```
|
|
235
231
|
|
|
236
232
|
| Flag | Description |
|
|
237
233
|
|------|-------------|
|
|
238
234
|
| `--only <name>` | Apply only the specified patch set |
|
|
239
235
|
| `--until <name>` | Apply patch sets up to and including the specified one |
|
|
240
|
-
| `--all` | Commit all patch sets without prompting |
|
|
241
|
-
| `--edit` | Leave the last patch set uncommitted for manual review |
|
|
242
236
|
|
|
243
237
|
### `patchy repo reset`
|
|
244
238
|
|
|
245
|
-
Hard reset the Git working tree of `target_repo
|
|
239
|
+
Hard reset the Git working tree of `target_repo`. Discards local changes.
|
|
246
240
|
|
|
247
241
|
```sh
|
|
248
|
-
patchy repo reset [--
|
|
242
|
+
patchy repo reset [--target-repo]
|
|
249
243
|
```
|
|
250
244
|
|
|
251
|
-
### `patchy repo
|
|
245
|
+
### `patchy repo checkout --ref <git-ref>`
|
|
252
246
|
|
|
253
|
-
|
|
247
|
+
Check out a specific Git ref (branch, tag, or SHA) in `target_repo`.
|
|
254
248
|
|
|
255
249
|
```sh
|
|
256
|
-
patchy repo
|
|
250
|
+
patchy repo checkout --ref main [--target-repo]
|
|
257
251
|
```
|
|
258
252
|
|
|
259
|
-
### `patchy
|
|
253
|
+
### `patchy repo clone`
|
|
260
254
|
|
|
261
|
-
|
|
255
|
+
Clone a repository into a subdirectory of `clones_dir`. The target directory is derived from the repo name.
|
|
262
256
|
|
|
263
257
|
```sh
|
|
264
|
-
patchy
|
|
265
|
-
patchy base abc123def # Set base_revision to the specified SHA or tag
|
|
258
|
+
patchy repo clone [--source-repo] [--clones-dir] [--ref]
|
|
266
259
|
```
|
|
267
260
|
|
|
268
261
|
## License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "patchy-cli",
|
|
3
|
-
"version": "0.0.9-pr.
|
|
3
|
+
"version": "0.0.9-pr.180.2f54d90",
|
|
4
4
|
"description": "A CLI tool for managing Git patch workflows.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
"url": "https://github.com/richardgill/patchy"
|
|
66
66
|
},
|
|
67
67
|
"optionalDependencies": {
|
|
68
|
-
"patchy-cli-linux-x64": "0.0.9-pr.
|
|
69
|
-
"patchy-cli-linux-arm64": "0.0.9-pr.
|
|
70
|
-
"patchy-cli-darwin-x64": "0.0.9-pr.
|
|
71
|
-
"patchy-cli-darwin-arm64": "0.0.9-pr.
|
|
72
|
-
"patchy-cli-windows-x64": "0.0.9-pr.
|
|
68
|
+
"patchy-cli-linux-x64": "0.0.9-pr.180.2f54d90",
|
|
69
|
+
"patchy-cli-linux-arm64": "0.0.9-pr.180.2f54d90",
|
|
70
|
+
"patchy-cli-darwin-x64": "0.0.9-pr.180.2f54d90",
|
|
71
|
+
"patchy-cli-darwin-arm64": "0.0.9-pr.180.2f54d90",
|
|
72
|
+
"patchy-cli-windows-x64": "0.0.9-pr.180.2f54d90"
|
|
73
73
|
},
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|