Documentation ¶
Index ¶
- Constants
- func FindGitDir(path string) (string, error)
- func HookPath(gitDir string, hook Hook) string
- func MergeBase(ctx context.Context, repo Repository, base, head plumbing.Revision) (plumbing.Hash, error)
- func RebaseCommits(ctx context.Context, repo Repository, base, onto plumbing.Hash, todo string) error
- type Hook
- type Message
- type Repository
Constants ¶
View Source
const (
RebaseArgsEnvVar = "MAIAO_REBASE_ARGUMENTS"
)
Variables ¶
This section is empty.
Functions ¶
func FindGitDir ¶
func RebaseCommits ¶
Types ¶
type Hook ¶
type Hook string
const ( ApplyPatchMsgHook Hook = "applypatch-msg" PostApplyPatchHook Hook = "post-applypatch" PostCheckoutHook Hook = "post-checkout" PostCommitHook Hook = "post-commit" PostMergeHook Hook = "post-merge" PostRewriteHook Hook = "post-rewrite" PrepareCommitMsgHook Hook = "prepare-commit-msg" PreApplyPatchHook Hook = "pre-applypatch" PreAutoGCHook Hook = "pre-auto-gc" PrePushHook Hook = "pre-push" PreRebaseHook Hook = "pre-rebase" )
const (
CommitMsgHook Hook = "commit-msg"
)
type Message ¶
Message defines the model of a commit message
func (*Message) GetChangeID ¶
GetChangeID returns the changeID in the commit message and if it has been found
type Repository ¶
type Repository interface { Head() (*plumbing.Reference, error) Remote(name string) (*git.Remote, error) Push(o *git.PushOptions) error Branches() (storer.ReferenceIter, error) Config() (*config.Config, error) Fetch(o *git.FetchOptions) error Log(o *git.LogOptions) (object.CommitIter, error) ResolveRevision(rev plumbing.Revision) (*plumbing.Hash, error) Worktree() (*git.Worktree, error) }
Click to show internal directories.
Click to hide internal directories.