Documentation
¶
Index ¶
- type DiffStat
- type GitOpts
- type ModType
- type Repo
- func (r *Repo) Add(pattern string) error
- func (r *Repo) AddCommitPush(msg string) error
- func (r *Repo) Branch() (string, error)
- func (r *Repo) Checkout(b string) error
- func (r *Repo) Clone() error
- func (r *Repo) CloneOrPull() error
- func (r *Repo) Commit(msg string) error
- func (r *Repo) CommitAuthor(commit string) (string, error)
- func (r *Repo) CurrentCommit() (string, error)
- func (r *Repo) DiffStatus(c1, c2 string) ([]*DiffStat, error)
- func (r *Repo) IsClean() bool
- func (r *Repo) Pull(options ...SetOptFunc) error
- func (r *Repo) Push() error
- func (r *Repo) ShowDeletedFile(path string) (string, error)
- func (r *Repo) ShowForCommit(commit, path string) (string, error)
- type SetOptFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct { URL string Name string WorkDir string RepoDir string // contains filtered or unexported fields }
func (*Repo) AddCommitPush ¶
func (*Repo) CloneOrPull ¶
func (*Repo) CurrentCommit ¶
func (*Repo) Pull ¶
func (r *Repo) Pull(options ...SetOptFunc) error
func (*Repo) ShowDeletedFile ¶
ShowDeletedFile fetches the last version of a file, from just before it got deleted from the current repo and branch
type SetOptFunc ¶
type SetOptFunc func(o *GitOpts)
func SetCloneDir ¶
func SetCloneDir(s string) SetOptFunc
func SetOptRebase ¶
func SetOptRebase() SetOptFunc
Click to show internal directories.
Click to hide internal directories.