Documentation
¶
Index ¶
- type Repo
- func (repo *Repo) ExecCommand(name string, arg ...string) (string, error)
- func (repo *Repo) ExecCommandLines(name string, arg ...string) ([]string, error)
- func (repo *Repo) FilesToBeCommitted() ([]string, error)
- func (repo *Repo) FindHookExecutables(hook string) ([]string, error)
- func (repo *Repo) IsDir(name string) (bool, error)
- func (repo *Repo) ShimGit() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// Root directory of the repository.
Root string
}
func (*Repo) ExecCommand ¶
Runs a command with the repo root as the current working directory. Returns the command's standard output with whitespace trimmed.
func (*Repo) ExecCommandLines ¶
Runs ExecCommand and splits its output on newlines.
func (*Repo) FilesToBeCommitted ¶
func (*Repo) FindHookExecutables ¶
Click to show internal directories.
Click to hide internal directories.