Module git

Module git 

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