Documentation ¶
Index ¶
- func ChangeBranch(branchName string, worktree *git.Worktree) error
- func CommitSingleFile(filePath, commitMessage, author string, worktree *git.Worktree) (plumbing.Hash, error)
- func PlainClone(username, password, serverURL, directory string) (*git.Repository, error)
- func PushChangesToRepository(username, password string, repository *git.Repository) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeBranch ¶
ChangeBranch checkout the provided branch. It will create a new branch if the branch does not exist yet. It will return an error if no branch name if provided
func CommitSingleFile ¶
func CommitSingleFile(filePath, commitMessage, author string, worktree *git.Worktree) (plumbing.Hash, error)
CommitSingleFile Commits the file located in the relative file path with the commitMessage to the given worktree. In case of errors, the error is returned. In the successful case the commit is provided.
func PlainClone ¶
PlainClone Clones a non-bare repository to the provided directory
func PushChangesToRepository ¶
PushChangesToRepository Pushes all committed changes in the repository to the remote repository
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.