Documentation
¶
Index ¶
- Variables
- func FindRepo(start string) (string, error)
- type CLIRepo
- func (r *CLIRepo) BranchDiff(target string) (Diff, error)
- func (r *CLIRepo) CommitDiff(hash string) (Diff, error)
- func (r *CLIRepo) FileDiff(path string) (Diff, error)
- func (r *CLIRepo) RangeDiff(target, feature string) (Diff, error)
- func (r *CLIRepo) Root() string
- func (r *CLIRepo) StagedDiff() (Diff, error)
- func (r *CLIRepo) UnstagedDiff() (Diff, error)
- type Diff
- type DispatchOptions
- type DispatchRepo
- func (d *DispatchRepo) BranchDiff(target string) (Diff, error)
- func (d *DispatchRepo) CommitDiff(hash string) (Diff, error)
- func (d *DispatchRepo) FileDiff(path string) (Diff, error)
- func (d *DispatchRepo) RangeDiff(target, feature string) (Diff, error)
- func (d *DispatchRepo) Root() string
- func (d *DispatchRepo) StagedDiff() (Diff, error)
- func (d *DispatchRepo) UnstagedDiff() (Diff, error)
- type GoGitRepo
- func (g *GoGitRepo) BranchDiff(target string) (Diff, error)
- func (g *GoGitRepo) CommitDiff(hash string) (Diff, error)
- func (g *GoGitRepo) FileDiff(string) (Diff, error)
- func (g *GoGitRepo) RangeDiff(target, feature string) (Diff, error)
- func (g *GoGitRepo) Root() string
- func (g *GoGitRepo) StagedDiff() (Diff, error)
- func (g *GoGitRepo) UnstagedDiff() (Diff, error)
- type Origin
- type Repo
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type CLIRepo ¶
type CLIRepo struct {
// contains filtered or unexported fields
}
func NewCLIRepo ¶
func (*CLIRepo) StagedDiff ¶
func (*CLIRepo) UnstagedDiff ¶
type Diff ¶
type Diff struct {
Content string
Origin Origin
Args map[string]string
// IsMerge is set by CommitDiff when the requested commit has 2+ parents.
// The diff content itself is always against the first parent (OQ-03 (b));
// callers use this flag to emit a user-visible warning about combined-diff
// limitations and suggest --pull-request for full branch comparison.
IsMerge bool
}
type DispatchOptions ¶
type DispatchRepo ¶
type DispatchRepo struct {
// contains filtered or unexported fields
}
func Open ¶
func Open(root string, opts DispatchOptions) (*DispatchRepo, error)
func (*DispatchRepo) BranchDiff ¶
func (d *DispatchRepo) BranchDiff(target string) (Diff, error)
func (*DispatchRepo) CommitDiff ¶
func (d *DispatchRepo) CommitDiff(hash string) (Diff, error)
func (*DispatchRepo) RangeDiff ¶
func (d *DispatchRepo) RangeDiff(target, feature string) (Diff, error)
func (*DispatchRepo) Root ¶
func (d *DispatchRepo) Root() string
func (*DispatchRepo) StagedDiff ¶
func (d *DispatchRepo) StagedDiff() (Diff, error)
func (*DispatchRepo) UnstagedDiff ¶
func (d *DispatchRepo) UnstagedDiff() (Diff, error)
type GoGitRepo ¶
type GoGitRepo struct {
// contains filtered or unexported fields
}
func NewGoGitRepo ¶
func (*GoGitRepo) StagedDiff ¶
func (*GoGitRepo) UnstagedDiff ¶
Click to show internal directories.
Click to hide internal directories.