@feigi/fleet-ctl 3.28.2 → 3.28.3
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 +8 -9
package/package.json
CHANGED
package/scripts/reap.sh
CHANGED
|
@@ -300,8 +300,8 @@ warnings=""
|
|
|
300
300
|
# because none happened or because nothing reports them.
|
|
301
301
|
removed=""
|
|
302
302
|
# `jstr`'s output wrapped in the quotes JSON needs, or the literal `null` where
|
|
303
|
-
# it could not render. `die` is the wrong answer at
|
|
304
|
-
# the time
|
|
303
|
+
# it could not render. `die` is the wrong answer at every call site below: by
|
|
304
|
+
# the time any accumulator is written this script may already have deleted
|
|
305
305
|
# branches, and the payload printed at the end is the caller's only record of
|
|
306
306
|
# that — the same reason the printf runs ahead of the prune. Exiting here
|
|
307
307
|
# would destroy the record of work that already happened. So an unrenderable
|
|
@@ -314,8 +314,9 @@ removed=""
|
|
|
314
314
|
#
|
|
315
315
|
# Five interpolations converge on this function: the branch name, `dirty
|
|
316
316
|
# worktree $wt`, `ignored files present in $wt: $ignored`, `cherry probe
|
|
317
|
-
# failed …: $cherry` (arbitrary git stderr) — the first four via `keep`,
|
|
318
|
-
#
|
|
317
|
+
# failed …: $cherry` (arbitrary git stderr) — the first four via `keep`, whose
|
|
318
|
+
# own `jfield "$1"` / `jfield "$2"` every `keep` call carrying one of them
|
|
319
|
+
# reaches — and the `reaped` accumulator, which calls `jfield`
|
|
319
320
|
# directly and never routes through `keep` at all. The branch name is the
|
|
320
321
|
# demonstrated trigger — `git branch 'has"quote'` is a legal refname — and raw
|
|
321
322
|
# it emitted a payload no parser accepts at exit 0, while the branch was
|
|
@@ -323,12 +324,10 @@ removed=""
|
|
|
323
324
|
# operator, not JSON.
|
|
324
325
|
#
|
|
325
326
|
# A sixth joined the five above later: grep's own stderr, `$gq_err`,
|
|
326
|
-
# surfaced through `gp_why "$gq_err"` in `keep`'s message at the
|
|
327
|
-
# checks and the
|
|
327
|
+
# surfaced through `gp_why "$gq_err"` in `keep`'s message at the cherry
|
|
328
|
+
# checks and the registry re-reads —
|
|
328
329
|
# arbitrary text on the same footing as `$cherry`, routed through the same
|
|
329
|
-
# jfield/jstr escaping the paragraph above already covers.
|
|
330
|
-
# "eleven call sites" figure above, which still counts only the original
|
|
331
|
-
# five; four more now carry grep's stderr specifically.
|
|
330
|
+
# jfield/jstr escaping the paragraph above already covers.
|
|
332
331
|
jfield() {
|
|
333
332
|
if jf=$(jstr "$1"); then
|
|
334
333
|
printf '"%s"' "$jf"
|