use Path;
/// The commented-only scaffold written to `.worktree.toml` when the file is
/// absent. Every line is a comment so the file has no effect until edited.
pub const SCAFFOLD: &str = crateWORKTREE_TOML;
/// Write [`SCAFFOLD`] to `<worktree_path>/.worktree.toml` if the file does not
/// already exist.
///
/// Returns `true` when the file was created, `false` when it was already
/// present (no write is performed in that case).
///
/// # Errors
///
/// Returns an error if the file cannot be written.