Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureOnMaster ¶
EnsureOnMaster ensures that the repository is on the master branch. It takes the repository path `repoPath` as input and returns an error if the repository is not on the master branch or if the operation fails.
func FetchBareRepo ¶ added in v0.14.3
FetchBareRepo fetches updates for a bare repository. It takes the repository path `repoPath` and work tree `workTree` as inputs and returns an error if the operation fails.
func IsDirty ¶
IsDirty checks if the repository at the given path has uncommitted changes. It takes the repository path `repoPath` as input and returns a boolean indicating whether the repository is dirty and an error if any occurs.
func PullLatestCode ¶
PullLatestCode pulls the latest changes from the specified branch of the repository. It takes the repository path `repoPath` and branch name `branchName` as inputs and returns an error if the operation fails.
func PullRebaseBareRepo ¶ added in v0.14.3
PullRebaseBareRepo performs a pull with rebase operation for a bare repository. It takes the repository path `repoPath` and work tree `workTree` as inputs and returns an error if the operation fails.
Types ¶
This section is empty.