Documentation ¶
Index ¶
- type Cloner
- type ExecErr
- type Logger
- type Repository
- func (r *Repository) AreThereUncommittedChanges(ctx context.Context) (bool, error)
- func (r *Repository) CheckoutNewBranch(ctx context.Context, branch string) error
- func (r *Repository) CommitAll(ctx context.Context, message string) error
- func (r *Repository) CurrentBranchName(ctx context.Context) (string, error)
- func (r *Repository) GetUserEmail(ctx context.Context) (string, error)
- func (r *Repository) GetUserName(ctx context.Context) (string, error)
- func (r *Repository) GuessRemote() (string, error)
- func (r *Repository) GuessRemoteHead(ctx context.Context, remoteName string) (string, error)
- func (r *Repository) GuessRemoteName(ctx context.Context) (string, error)
- func (r *Repository) Location() string
- func (r *Repository) SetUserNameAndEmailIfUnset(ctx context.Context, name string, email string) error
- type SilentLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (*Repository) AreThereUncommittedChanges ¶
func (r *Repository) AreThereUncommittedChanges(ctx context.Context) (bool, error)
func (*Repository) CheckoutNewBranch ¶
func (r *Repository) CheckoutNewBranch(ctx context.Context, branch string) error
func (*Repository) CommitAll ¶
func (r *Repository) CommitAll(ctx context.Context, message string) error
func (*Repository) CurrentBranchName ¶
func (r *Repository) CurrentBranchName(ctx context.Context) (string, error)
func (*Repository) GetUserEmail ¶
func (r *Repository) GetUserEmail(ctx context.Context) (string, error)
func (*Repository) GetUserName ¶
func (r *Repository) GetUserName(ctx context.Context) (string, error)
func (*Repository) GuessRemote ¶
func (r *Repository) GuessRemote() (string, error)
func (*Repository) GuessRemoteHead ¶
func (*Repository) GuessRemoteName ¶
func (r *Repository) GuessRemoteName(ctx context.Context) (string, error)
func (*Repository) Location ¶
func (r *Repository) Location() string
func (*Repository) SetUserNameAndEmailIfUnset ¶
Click to show internal directories.
Click to hide internal directories.