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 decision before opening a merge
request.
All public functions take a [Runner
] as a parameter and return a
Result<CmdInfo>
.
Structs§
- Repo
- Repo represents a local git repository
Functions§
- add
- checkout
- commit
- commit_
message - commit_
summary - Get the last commit summary from the local git repository.
- current_
branch - Gather the current branch name in the local git repository.
- fetch
- Fetch the last commits from the remote.
- outgoing_
commits - patch
- push
- rebase
- remote_
url - Get the origin remote url from the local git repository.
- status
- Gather the status of the local git repository.