11 lines
341 B
Bash
Executable File
11 lines
341 B
Bash
Executable File
#!/bin/sh
|
|
# Auto-append a minimal X-Financial agent work-log entry after each commit.
|
|
|
|
repo_root="$(git rev-parse --show-toplevel 2>/dev/null)" || exit 0
|
|
cd "$repo_root" || exit 0
|
|
|
|
python3 tools/agent-change-log/update_change_log.py \
|
|
--kind auto \
|
|
--event "post-commit hook" \
|
|
>/tmp/x-financial-agent-change-log-hook.log 2>&1 || true
|