pub fn initialize_workspace(
directory: &Path,
requested_name: Option<&str>,
) -> Result<InitReport, ApplicationError>Expand description
Creates a strict minimal workspace manifest without overwriting existing files.
ยงErrors
When the workspace belongs to a Git worktree, generated local state is excluded through an
idempotent .gitignore update that preserves all existing bytes and rules. No .gitignore is
created for an unversioned directory that only contains child repositories.
Returns ApplicationError when the directory cannot be created, the destination already
exists, the derived name is invalid, or the manifest and ignore rule cannot be durably written.