git

package
v0.0.0-...-3f52361 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 Init

func Init(repoPath string) (*GitManager, error)

Init は指定パスをGitリポジトリとして初期化する

func NewGitManager

func NewGitManager(repoPath string) (*GitManager, error)

NewGitManager は指定パスのGitManagerを生成する。リポジトリが存在しない場合はエラー。

func (*GitManager) AddAll

func (g *GitManager) AddAll() error

AddAll はワーキングツリーの全変更をステージングする

func (*GitManager) Commit

func (g *GitManager) Commit(message string) error

Commit は変更をコミットする

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 はワーキングツリーの状態を文字列で返す

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL