Struct git_repository::Repository
source · [−]Expand description
A instance with access to everything a git repository entails, best imagined as container for most for system resources required
to interact with a git
repository which are loaded in once the instance is created.
The main difference to the easy::Handle
is that this type is Sync
, and thus can be referenced into a threaded context for creation
of thread-local handles.
Fields
refs: RefStore
A store for references to point at objects
work_tree: Option<PathBuf>
The path to the worktree at which to find checked out files
Implementations
Create a repository with work-tree within directory
, creating intermediate directories as needed.
Fails without action if there is already a .git
repository inside of directory
, but
won’t mind if the directory
otherwise is non-empty.
The path to the .git
directory itself, or equivalent if this is a bare repository.
Return the path to the repository itself, containing objects, references, configuration, and more.
Synonymous to path()
.
Return the path to the working directory if this is not a bare repository.
Return the path to the directory containing all objects.
Trait Implementations
Performs the conversion.
Performs the conversion.