Brought to you by Allons-y Studio

Function: ensureGitignored()

function ensureGitignored(cwd, entry): boolean;

Defined in: hooks.ts:56

Add an entry to .gitignore unless it is already listed.

Parameters

Parameter Type Description
cwd string The repository root.
entry string The pattern to ignore.

Returns

boolean

true if .gitignore was changed.