pub fn write_gitignore(root: &Path) -> Result<()>Expand description
Ensure the volume’s .gitignore carries the runtime entries.
Writes the template verbatim when .gitignore is absent; when it
exists, appends any missing non-comment lines under an # omne
section header. Comments in the template are only emitted when a
fresh write occurs so repeat invocations don’t accrete marker
blocks.