Trim comments to the non-obvious why
Test and deploy / test (push) Successful in 28s
Test and deploy / deploy (push) Successful in 31s

Drop narration, history and restated-code comments across the repo,
keep short ones for security boundaries, upstream quirks and ordering
constraints, and record the convention in CLAUDE.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-24 20:49:03 +00:00
co-authored by Claude Opus 5.5
parent effddd2794
commit 4530cb8dc4
222 changed files with 1173 additions and 5423 deletions
+3 -16
View File
@@ -1,20 +1,7 @@
#!/bin/sh
# Commits SilverBullet's edits to the notes repo and syncs them with the remote.
#
# SilverBullet writes plain markdown straight into the space folder and has no
# concept of git, so this sidecar is what keeps the notes repo moving. It is
# deliberately a separate container rather than SilverBullet's own shell backend:
# the editor is protected only by Caddy's admin gate, and enabling a shell
# backend would hand anyone past that gate command execution inside the container.
#
# ON-DEMAND SYNC
# Waiting out the interval is annoying when you want a note on another device
# now, so the editor can ask for an immediate sync. The "Sync notes" button in
# SilverBullet (defined in the vault's own Sync.md) writes a timestamp to
# TRIGGER_FILE; this script notices the modification time change and syncs on
# the spot. The file is gitignored in the notes repo and is never deleted here
# — deleting it would fight SilverBullet's client, which would re-upload its
# cached copy and cause a delete/recreate loop. Only the mtime matters.
# Commits and syncs the vault. The "Sync notes" button (the vault's Sync.md)
# touches TRIGGER_FILE for an immediate sync; only its mtime matters, and it
# must never be deleted here or SilverBullet re-uploads it in a loop.
set -u