Documentation
¶
Overview ¶
SPDX-License-Identifier: MIT
Index ¶
- func Amend(date time.Time, lastDate *time.Time, lastRealDate *time.Time, threshold int, ...) time.Time
- type CommandError
- type Commit
- type GitLog
- type GitRepo
- func (r *GitRepo) AmendDate(commit *Commit) error
- func (r *GitRepo) AmendDates(log GitLog) error
- func (r *GitRepo) BranchUpstream(branch string) string
- func (r *GitRepo) Clone(remote string) error
- func (r *GitRepo) Commit(commit *Commit) error
- func (r *GitRepo) CurrentBranch() string
- func (r *GitRepo) GetConfig(option string) (string, error)
- func (r *GitRepo) GetHook(name string) (string, error)
- func (r *GitRepo) GetSectionOptions(name string) (map[string]string, error)
- func (r *GitRepo) GetVar(str string) (string, error)
- func (r *GitRepo) Init(rT RepoType) error
- func (r *GitRepo) IsGitRepo() bool
- func (r *GitRepo) Log() (GitLog, error)
- func (r *GitRepo) LogWithRevision(revisionRange string) (GitLog, error)
- func (r *GitRepo) Origin() (string, error)
- func (r *GitRepo) Push() error
- func (r *GitRepo) RootCommitHash() (string, error)
- func (r *GitRepo) SetConfig(key string, value string) error
- func (r *GitRepo) SetOrigin(url string) error
- func (r *GitRepo) State() RepoState
- func (r *GitRepo) Type() (RepoType, error)
- type RepoState
- type RepoType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandError ¶
type CommandError struct { Command string Stdout string Stderr string // contains filtered or unexported fields }
func (*CommandError) PrettyPrint ¶
func (e *CommandError) PrettyPrint()
type GitRepo ¶
type GitRepo struct { Dir string // contains filtered or unexported fields }
func (*GitRepo) AmendDates ¶
func (*GitRepo) BranchUpstream ¶
func (*GitRepo) CurrentBranch ¶
func (*GitRepo) GetSectionOptions ¶
func (*GitRepo) LogWithRevision ¶
func (*GitRepo) RootCommitHash ¶
Click to show internal directories.
Click to hide internal directories.