chore(vault): rebuild git infra (gitignore/attributes/mailmap/hooks)

This commit is contained in:
hehaiguang1123
2026-07-01 08:18:43 +08:00
parent a971d9f625
commit e166ef1052
6 changed files with 161 additions and 11 deletions
+8 -1
View File
@@ -1,5 +1,12 @@
#!/bin/sh
# post-merge — git pull/merge 后自动更新 qmd 索引
# post-merge — refresh qmd index + hint to reload Obsidian after config pull
echo "=== post-merge: Updating qmd index ==="
node "C:\Users\hhhh2024\AppData\Roaming\npm\node_modules\@tobilu\qmd\dist\cli\qmd.js" update 2>/dev/null || echo " qmd update skipped (not installed?)"
# If .obsidian configs changed in this merge, hint reload
if ! git diff --quiet HEAD@{1} HEAD -- .obsidian 2>/dev/null; then
echo "=== .obsidian config changed: reload Obsidian (Ctrl+R) to apply ==="
fi
echo "=== Done ==="