class
Agate::InitOptions
- Agate::InitOptions
- Reference
- Object
Overview
A builder for repository initialization options. Provides a safe Crystal API over the C git_repository_init_options struct.
Defined in:
agate/init_options.crConstructors
Instance Method Summary
-
#bare=(value : Bool)
Creates a bare repository.
-
#description=(desc : String)
Sets the repository description.
-
#initial_head=(name : String)
Sets the initial branch name (e.g., "main").
-
#mkpath=(value : Bool)
Creates intermediate directories as needed.
-
#mode=(mode : Repository::InitMode)
Sets the file mode for shared repositories.
-
#origin_url=(url : String)
Sets the origin URL.
-
#template_path=(path : String)
Sets the template directory path.
-
#workdir_path=(path : String)
Sets the workdir path (for non-standard layouts).