rd13_copilot_setup/git-templates/hooks/post-merge
Conrad Schulz 0d42b4fb55 feat: copilot-update.sh + git copilot-update alias + post-merge auto-deploy
- 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
2026-06-02 10:36:16 +00:00

20 lines
556 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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