pub fn hook_entry_name(event: &str) -> StringExpand description
What:
The file name of one preparation event’s entry.
Why:
Unix names the entry after the event; Windows adds .exe, which Git appends when it looks up a hook.
In TS you’d write (pseudocode):
process.platform === 'win32' ? `${event}.exe` : event;