- scripts/copilot-update.sh: zieht Setup-Repo (SSH+HTTP-Fallback) in ~/.copilot-setup/, aktualisiert ~/.git-templates/, VS Code Prompts und repo-lokale Git-Hooks; copilot-instructions.md nur bei TODO-Erkennung (mit .bak Backup) - scripts/copilot-update.fish: Fish-Variante desselben Scripts - git-templates/hooks/post-merge: opt-in Template-Hook (ruft copilot-update.sh auf) - scripts/deploy.sh: installiert copilot-update.sh/.fish, setzt 'git copilot-update' Alias, installiert post-merge Hook im Setup-Repo selbst (auto-deploy nach git pull) - scripts/deploy.fish: analog - scripts/copilot-bootstrap.sh: --with-update-hook Flag + post-commit Hook Installation
20 lines
556 B
Bash
20 lines
556 B
Bash
#!/usr/bin/env sh
|
||
# post-merge – Automatisches Copilot-Update nach git pull (opt-in)
|
||
#
|
||
# Dieser Hook ruft copilot-update.sh auf wenn es installiert ist.
|
||
# So werden Templates und Prompt-Dateien nach jedem 'git pull' automatisch
|
||
# auf dem neuesten Stand gehalten.
|
||
#
|
||
# INSTALLATION (opt-in):
|
||
# copilot-bootstrap.sh --with-update-hook
|
||
#
|
||
# DEINSTALLATION:
|
||
# rm .git/hooks/post-merge
|
||
|
||
UPDATER="$HOME/.local/bin/copilot-update.sh"
|
||
|
||
if [ -x "$UPDATER" ]; then
|
||
echo ""
|
||
echo " [post-merge] Copilot-Templates werden aktualisiert..."
|
||
"$UPDATER"
|
||
fi
|