Create docs/demo.tape scripting a ~15s pivot axis reassignment demo. Hide shell startup and quit so the GIF opens directly on the TUI. Set up git-lfs for docs/*.gif. Merge LFS hooks with existing beads hooks. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
30 lines
1.2 KiB
Bash
Executable File
30 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env sh
|
|
# --- BEGIN BEADS INTEGRATION v1.0.0 ---
|
|
# This section is managed by beads. Do not remove these markers.
|
|
if command -v bd >/dev/null 2>&1; then
|
|
export BD_GIT_HOOK=1
|
|
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
|
if command -v timeout >/dev/null 2>&1; then
|
|
timeout "$_bd_timeout" bd hooks run post-merge "$@"
|
|
_bd_exit=$?
|
|
if [ $_bd_exit -eq 124 ]; then
|
|
echo >&2 "beads: hook 'post-merge' timed out after ${_bd_timeout}s — continuing without beads"
|
|
_bd_exit=0
|
|
fi
|
|
else
|
|
bd hooks run post-merge "$@"
|
|
_bd_exit=$?
|
|
fi
|
|
if [ $_bd_exit -eq 3 ]; then
|
|
echo >&2 "beads: database not initialized — skipping hook 'post-merge'"
|
|
_bd_exit=0
|
|
fi
|
|
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
|
|
fi
|
|
# --- END BEADS INTEGRATION v1.0.0 ---
|
|
|
|
# --- BEGIN GIT LFS ---
|
|
command -v git-lfs >/dev/null 2>&1 || { printf >&2 "\n%s\n\n" "This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-merge' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks')."; exit 2; }
|
|
git lfs post-merge "$@"
|
|
# --- END GIT LFS ---
|