Documentation
¶
Index ¶
- type GitManager
- func (g *GitManager) AddAll() error
- func (g *GitManager) Commit(message string) error
- func (g *GitManager) IsClean() (bool, error)
- func (g *GitManager) Pull(remote, branch string, auth *http.BasicAuth) error
- func (g *GitManager) Push(remote, branch string, auth *http.BasicAuth) error
- func (g *GitManager) SetRemote(name, url string) error
- func (g *GitManager) Status() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitManager ¶
type GitManager struct {
// contains filtered or unexported fields
}
GitManager はGitリポジトリ操作を提供するラッパー
func NewGitManager ¶
func NewGitManager(repoPath string) (*GitManager, error)
NewGitManager は指定パスのGitManagerを生成する。リポジトリが存在しない場合はエラー。
func (*GitManager) IsClean ¶
func (g *GitManager) IsClean() (bool, error)
IsClean はワーキングツリーがクリーンかどうかを返す
func (*GitManager) Pull ¶
func (g *GitManager) Pull(remote, branch string, auth *http.BasicAuth) error
Pull はリモートからプルする
func (*GitManager) Push ¶
func (g *GitManager) Push(remote, branch string, auth *http.BasicAuth) error
Push はリモートにプッシュする
func (*GitManager) SetRemote ¶
func (g *GitManager) SetRemote(name, url string) error
SetRemote はリモートリポジトリURLを設定する
func (*GitManager) Status ¶
func (g *GitManager) Status() (string, error)
Status はワーキングツリーの状態を文字列で返す
Click to show internal directories.
Click to hide internal directories.