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.
Files changed (3) hide show
  1. package/README.md +14 -21
  2. package/package.json +6 -6
  3. 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
- "base_revision": "d0dd1f61b33d64e29d8bc1372a94ef6a2fee76a9",
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 with `patchy repo reset`, which will reset everything to `base_revision`:
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 SHA or tag to use as the base for patches.
180
- "base_revision": "abc123def", // Override: --base-revision | env: PATCHY_BASE_REVISION
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, with each patch set committed automatically.
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>] [--all] [--edit] [--target-repo] [--patches-dir] [--dry-run]
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` to `base_revision`. Discards all local changes and patch commits.
239
+ Hard reset the Git working tree of `target_repo`. Discards local changes.
246
240
 
247
241
  ```sh
248
- patchy repo reset [--base-revision] [--target-repo]
242
+ patchy repo reset [--target-repo]
249
243
  ```
250
244
 
251
- ### `patchy repo clone`
245
+ ### `patchy repo checkout --ref <git-ref>`
252
246
 
253
- Clone a repository into a subdirectory of `clones_dir` and checkout `base_revision`. The target directory is derived from the repo name.
247
+ Check out a specific Git ref (branch, tag, or SHA) in `target_repo`.
254
248
 
255
249
  ```sh
256
- patchy repo clone [--source-repo] [--clones-dir] [--base-revision]
250
+ patchy repo checkout --ref main [--target-repo]
257
251
  ```
258
252
 
259
- ### `patchy base [revision]`
253
+ ### `patchy repo clone`
260
254
 
261
- View or update the `base_revision` in config.
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 base # Interactive
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.179.a2f2b32",
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.179.a2f2b32",
69
- "patchy-cli-linux-arm64": "0.0.9-pr.179.a2f2b32",
70
- "patchy-cli-darwin-x64": "0.0.9-pr.179.a2f2b32",
71
- "patchy-cli-darwin-arm64": "0.0.9-pr.179.a2f2b32",
72
- "patchy-cli-windows-x64": "0.0.9-pr.179.a2f2b32"
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"
package/schema.json CHANGED
@@ -19,10 +19,7 @@
19
19
  "patch_set": {
20
20
  "type": "string"
21
21
  },
22
- "base_revision": {
23
- "type": "string"
24
- },
25
- "upstream_branch": {
22
+ "ref": {
26
23
  "type": "string"
27
24
  },
28
25
  "verbose": {