class Agate::InitOptions

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def bare=(value : Bool) #

Creates a bare repository.


[View source]
def description=(desc : String) #

Sets the repository description.


[View source]
def initial_head=(name : String) #

Sets the initial branch name (e.g., "main").


[View source]
def mkpath=(value : Bool) #

Creates intermediate directories as needed.


[View source]
def mode=(mode : Repository::InitMode) #

Sets the file mode for shared repositories.


[View source]
def origin_url=(url : String) #

Sets the origin URL.


[View source]
def template_path=(path : String) #

Sets the template directory path.


[View source]
def workdir_path=(path : String) #

Sets the workdir path (for non-standard layouts).


[View source]