Skip to main content

hook_entry_name

Function hook_entry_name 

Source
pub fn hook_entry_name(event: &str) -> String
Expand 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;