MicahElliott / captain

A simpler approach to git-hook management
Other
2 stars 0 forks source link

Consider case where a git-hook is called but nothing staged #20

Open MicahElliott opened 11 months ago

MicahElliott commented 11 months ago

Would need to adapt some triggers to no-op if they detect that CAPT_FILES_CHANGED is empty. Otherwise a command like mdl $CAPT_FILES_CHANGED is naturally going to sit and wait for stdin.

So could just abort if any know git-hook arrays are invoked with no staged files.