Documentation
¶
Overview ¶
Package branch provides use-cases for creating or updating a branch.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct {
CreateGitObject gitobject.Interface
FileSystem fs.Interface
GitHub github.Interface
}
Commit commits files to the default/given branch on the repository.
type Input ¶
type Input struct {
TargetRepository git.RepositoryID
TargetBranchName git.BranchName // if empty, target is the default branch
ParentRepository git.RepositoryID
CommitStrategy commitstrategy.CommitStrategy
CommitMessage git.CommitMessage
Author *git.CommitAuthor // optional
Committer *git.CommitAuthor // optional
Paths []string // if empty or nil, create an empty commit
NoFileMode bool
DryRun bool
ForceUpdate bool //TODO: support force-update as well
}
Click to show internal directories.
Click to hide internal directories.