@feigi/fleet-ctl 3.30.0 → 3.30.1
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/package.json +1 -1
- package/scripts/reap.sh +12 -16
package/package.json
CHANGED
package/scripts/reap.sh
CHANGED
|
@@ -312,22 +312,18 @@ removed=""
|
|
|
312
312
|
# a substitution that failed would contribute an empty string and splice
|
|
313
313
|
# `{"branch":,…}` — malformed JSON — with nothing to notice it.
|
|
314
314
|
#
|
|
315
|
-
#
|
|
316
|
-
#
|
|
317
|
-
#
|
|
318
|
-
# own
|
|
319
|
-
#
|
|
320
|
-
#
|
|
321
|
-
#
|
|
322
|
-
#
|
|
323
|
-
#
|
|
324
|
-
#
|
|
325
|
-
#
|
|
326
|
-
#
|
|
327
|
-
# surfaced through `gp_why "$gq_err"` in `keep`'s message at the cherry
|
|
328
|
-
# checks and the registry re-reads —
|
|
329
|
-
# arbitrary text on the same footing as `$cherry`, routed through the same
|
|
330
|
-
# jfield/jstr escaping the paragraph above already covers.
|
|
315
|
+
# Arbitrary text reaches this function by many routes, and what follows names
|
|
316
|
+
# the kinds of it, not every caller: branch names; worktree paths; git's own
|
|
317
|
+
# stderr, surfaced through `gp_why` with no argument, which reads `$gp_err`;
|
|
318
|
+
# grep's own stderr, through `gp_why "$gq_err"`; the error text of `git
|
|
319
|
+
# worktree remove`, `git update-ref` and `git config --remove-section`; and
|
|
320
|
+
# scan output such as `$cherry` and the `$ignored` listing. Most of it arrives
|
|
321
|
+
# inside a `keep` message, through `keep`'s own `jfield "$1"` / `jfield "$2"`;
|
|
322
|
+
# the `reaped`, `removed` and `warnings` accumulators call `jfield` directly
|
|
323
|
+
# and never route through `keep` at all. The branch name is the demonstrated
|
|
324
|
+
# trigger — `git branch 'has"quote'` is a legal refname — and raw it emitted a
|
|
325
|
+
# payload no parser accepts at exit 0, while the branch was correctly kept.
|
|
326
|
+
# The stderr lines stay raw: they are prose for an operator, not JSON.
|
|
331
327
|
jfield() {
|
|
332
328
|
if jf=$(jstr "$1"); then
|
|
333
329
|
printf '"%s"' "$jf"
|