Compare commits

...
2 Commits
Author SHA1 Message Date
rootiestandClaude Sonnet 5 e624744555 fix(functions): use cp --update=none instead of non-portable -n
GNU cp warns that -n's behavior is non-portable and may change; the
long form is stable and silences the CI warning.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-21 22:28:37 -04:00
rootiestandClaude Sonnet 5 30d0fdf9c8 fix(docs): point classification-schema link at Gitea, not a relative path
The schema file lives at docs/function-classification-schema.md but is
not a published Starlight page, so a relative link resolves fine in the
manual source tree but breaks once copied into
docs/site/src/content/docs/ — starlight-links-validator failed CI's
build-docs job on it. Rewrite it as an absolute Gitea blob URL, the same
pattern _rewrite_repo_links already uses for CONTRIBUTING.md/LICENSE.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-21 22:25:25 -04:00
4 changed files with 6 additions and 6 deletions
@@ -110,5 +110,5 @@ toggle state:
A function's own doc header records which of these it depends on: see the A function's own doc header records which of these it depends on: see the
`CLASSIFICATION` label (`uses-shadow(...)` / `bypasses-shadow(...)`), `CLASSIFICATION` label (`uses-shadow(...)` / `bypasses-shadow(...)`),
documented in full at documented in full at
[`docs/function-classification-schema.md`](../../function-classification-schema.md). [`docs/function-classification-schema.md`](https://git.rootiest.dev/rootiest/fish-config/src/branch/main/docs/function-classification-schema.md).
+2 -2
View File
@@ -20,7 +20,7 @@
# having no backup at all. # having no backup at all.
# #
# When <link> is an existing real directory, its contents are copied into # When <link> is an existing real directory, its contents are copied into
# <target> without clobbering (cp -n) before the directory is replaced by # <target> without clobbering (cp --update=none) before the directory is replaced by
# the link, so adopting a populated live directory never overwrites the # the link, so adopting a populated live directory never overwrites the
# copy already in the vault. # copy already in the vault.
# #
@@ -60,7 +60,7 @@ function _agents_repo_ensure_symlink --argument-names link target
else if test -d "$link" else if test -d "$link"
set -l contents (command ls -A "$link" 2>/dev/null) set -l contents (command ls -A "$link" 2>/dev/null)
if test (count $contents) -gt 0 if test (count $contents) -gt 0
command cp -rn "$link/." "$target/"; or return 1 command cp -r --update=none "$link/." "$target/"; or return 1
end end
rm -rf "$link"; or return 1 rm -rf "$link"; or return 1
else if test -e "$link" else if test -e "$link"
+2 -2
View File
@@ -354,7 +354,7 @@ function agents-init --description 'scaffold AGENTS/ sub-repo with agent spec fi
set -l rel (string replace "$root/" "" "$src") set -l rel (string replace "$root/" "" "$src")
set -l contents (command ls -A "$src" 2>/dev/null) set -l contents (command ls -A "$src" 2>/dev/null)
if test (count $contents) -gt 0 if test (count $contents) -gt 0
if not command cp -rn "$src/." "$canonical/" if not command cp -r --update=none "$src/." "$canonical/"
echo "$c_err""Error: could not merge $rel → AGENTS/$tgt$c_reset" >&2 echo "$c_err""Error: could not merge $rel → AGENTS/$tgt$c_reset" >&2
return 1 return 1
end end
@@ -437,7 +437,7 @@ function agents-init --description 'scaffold AGENTS/ sub-repo with agent spec fi
test -d "$devlogs_dir"; or mkdir -p "$devlogs_dir" test -d "$devlogs_dir"; or mkdir -p "$devlogs_dir"
set -l contents (command ls -A "$docs_devlogs" 2>/dev/null) set -l contents (command ls -A "$docs_devlogs" 2>/dev/null)
if test (count $contents) -gt 0 if test (count $contents) -gt 0
if not command cp -rn "$docs_devlogs/." "$devlogs_dir/" if not command cp -r --update=none "$docs_devlogs/." "$devlogs_dir/"
echo "$c_err""Error: could not copy docs/devlogs → AGENTS/devlogs$c_reset" >&2 echo "$c_err""Error: could not copy docs/devlogs → AGENTS/devlogs$c_reset" >&2
return 1 return 1
end end
+1 -1
View File
@@ -893,7 +893,7 @@ function agents-vault --description 'track curated agent memory in a host-scoped
if test -n "$stash" if test -n "$stash"
test -f "$stash/origin" test -f "$stash/origin"
and command cat "$stash/origin" >>"$entry/origin" 2>/dev/null and command cat "$stash/origin" >>"$entry/origin" 2>/dev/null
command cp -rn "$stash/." "$entry/" 2>/dev/null command cp -r --update=none "$stash/." "$entry/" 2>/dev/null
rm -rf "$stash" rm -rf "$stash"
end end
printf 'renamed: %s → %s (%s)\n' "$prev_slug" "$slug" (date -I) >>"$entry/origin" printf 'renamed: %s → %s (%s)\n' "$prev_slug" "$slug" (date -I) >>"$entry/origin"