Expand description
Git commands. It defines the public entrypoints to execute git commands and interact with the git repositories.
Git commands are just public functions that return a Result<CmdInfo>
.
The CmdInfo
is an enum that defines the different types of information
returned by git operations. These operations can execute in parallel and the
result can be combined at the end to make a decission before opening a merge
request.
All public functions take a [Runner
] as a parameter and return a
Result<CmdInfo>
.
Structs§
- Repo represents a local git repository
Functions§
- Get the last commit summary from the local git repository.
- Gather the current branch name in the local git repository.
- Fetch the last commits from the remote.
- Get the origin remote url from the local git repository.
- Gather the status of the local git repository.