Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDirIsFile = errors.New("path is a file")
)
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (*Repository) GetAuthor ¶
func (r *Repository) GetAuthor() *object.Signature
func (*Repository) GetWorktree ¶
func (r *Repository) GetWorktree() (*git.Worktree, error)
func (*Repository) PushChanges ¶
func (r *Repository) PushChanges(msg string, newLines, removedLines []string) error
type RepositoryActions ¶
type RepositoryActions interface { PushChanges(msg string, newLines, removedLines []string) error GetWorktree() (*git.Worktree, error) GetAuthor() *object.Signature // contains filtered or unexported methods }
func NewRepository ¶
func NewRepository(config configuration.Git, repoPath string) (RepositoryActions, error)
Click to show internal directories.
Click to hide internal directories.