post-commit - Hook Runner Flow
flowchart TD
Start([Start]) --> Wrapper["Ensure Bash / win-bash-wrapper"]
Wrapper --> CheckGit{GIT_DIR set?}
CheckGit -->|no| Exit0([Exit quietly])
CheckGit -->|yes| RepoRoot{Repo root found?}
RepoRoot -->|no| Exit1([Exit quietly])
RepoRoot -->|yes| SetupLog["Create .logs + tee output"]
SetupLog --> DropIn{.githooks/post-commit.d exists?}
DropIn -->|no| SkipDrop["No drop-in scripts"]
DropIn -->|yes| RunDrop["Run each *.sh (exec or bash)"]
RunDrop --> Summary["Summarize Passed/Failed"]
SkipDrop --> Summary
Summary --> Done([Exit 0])
classDef action fill:#ecfeff,stroke:#06b6d4
classDef decision fill:#fef3c7,stroke:#f59e0b
classDef success fill:#d1fae5,stroke:#10b981
class Wrapper,SetupLog,RunDrop,Summary,SkipDrop action
class CheckGit,RepoRoot,DropIn decision
class Exit0,Exit1,Done success
Back to build scripts