Skip to content

updateGitignore

updateGitignore(path, options): Promise<boolean>

Defined in: managed-block.ts:131

upsertManagedBlock applied to a file (a missing file counts as empty, and is created). Writes only when the content changes, and atomically (a temp file renamed into place; a symlinked path is updated through the link). Resolves to true when it wrote.

Calls for the same path within one process run one after another, each reading the file as the previous left it. Separate processes aren’t coordinated. Any read error other than “no such file” rejects, rather than being mistaken for an empty file and overwritten.

string

ManagedBlockOptions

Promise<boolean>