Documentation
¶
Index ¶
- Variables
- func IsRepository(path string) bool
- func Operation(command string, flags []string, args ...string) (string, error)
- type Repository
- func (repo *Repository) Add(paths ...string) (err error)
- func (repo *Repository) Checkout(args ...string) (err error)
- func (repo *Repository) Commit(msg string) (err error)
- func (repo *Repository) Exclude(patterns ...string) (err error)
- func (repo *Repository) Fetch(remote string) (err error)
- func (repo *Repository) Init() (err error)
- func (repo *Repository) Op(cmd string, flags []string, args ...string) (out string, err error)
- func (repo *Repository) Pull(remote string, branch string) (err error)
- func (repo *Repository) Push(remote string, branch string) (err error)
- func (repo *Repository) SetRemote(remote string, url string) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var NOF = []string{}
Functions ¶
func IsRepository ¶
Types ¶
type Repository ¶
type Repository struct {
Path string
}
func NewRepository ¶
func NewRepository(path string) (repo *Repository, err error)
func (*Repository) Add ¶
func (repo *Repository) Add(paths ...string) (err error)
func (*Repository) Checkout ¶
func (repo *Repository) Checkout(args ...string) (err error)
func (*Repository) Commit ¶
func (repo *Repository) Commit(msg string) (err error)
func (*Repository) Exclude ¶
func (repo *Repository) Exclude(patterns ...string) (err error)
Append these patterns to .git/info/exclude
func (*Repository) Fetch ¶
func (repo *Repository) Fetch(remote string) (err error)
func (*Repository) Init ¶
func (repo *Repository) Init() (err error)
Click to show internal directories.
Click to hide internal directories.