check

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assayer

type Assayer struct {
	// contains filtered or unexported fields
}

func NewAssayer

func NewAssayer(arguments arguments.Arguments) Assayer

func (*Assayer) CheckRepository

func (a *Assayer) CheckRepository(
	directory, repository string,
	verdicts chan<- types.Response,
	args *arguments.Arguments,
	fetch *FetcherChecker,
)

type BranchChecker

type BranchChecker struct {
	// contains filtered or unexported fields
}

func NewBranchChecker

func NewBranchChecker(arguments arguments.Arguments) *BranchChecker

func (*BranchChecker) Check

func (b *BranchChecker) Check(
	directory, repository string,
	repo *git.Repository,
) iter.Seq[types.Response]

func (*BranchChecker) ToString

func (b *BranchChecker) ToString() string

type Checker

type Checker interface {
	Check(directory, repository string, repo *git.Repository) iter.Seq[types.Response]
	ToString() string
}

type FetcherChecker added in v0.9.0

type FetcherChecker struct {
	FetchType  arguments.FetchType
	FetchGroup *glob.Glob
}

func (*FetcherChecker) NeedsFetch added in v0.9.0

func (f *FetcherChecker) NeedsFetch(remoteUrl string) bool

type LocalOnlyBranch

type LocalOnlyBranch struct {
	// contains filtered or unexported fields
}

func (LocalOnlyBranch) BranchName

func (u LocalOnlyBranch) BranchName() string

func (LocalOnlyBranch) Repository

func (u LocalOnlyBranch) Repository() string

func (LocalOnlyBranch) RepositoryPath added in v0.8.0

func (u LocalOnlyBranch) RepositoryPath() string

type Modified

type Modified struct {
	// contains filtered or unexported fields
}

func (Modified) ModificationType

func (u Modified) ModificationType() git.StatusCode

func (Modified) ModifiedItem

func (u Modified) ModifiedItem() string

func (Modified) Repository

func (u Modified) Repository() string

func (Modified) RepositoryPath added in v0.8.0

func (u Modified) RepositoryPath() string

type RemoteAhead

type RemoteAhead struct {
	// contains filtered or unexported fields
}

func (RemoteAhead) LocalBranch

func (u RemoteAhead) LocalBranch() string

func (RemoteAhead) RemoteRefName

func (u RemoteAhead) RemoteRefName() string

func (RemoteAhead) Repository

func (u RemoteAhead) Repository() string

func (RemoteAhead) RepositoryPath added in v0.8.0

func (u RemoteAhead) RepositoryPath() string

type RemoteBehind

type RemoteBehind struct {
	// contains filtered or unexported fields
}

func (RemoteBehind) LocalBranch

func (u RemoteBehind) LocalBranch() string

func (RemoteBehind) RemoteRefName

func (u RemoteBehind) RemoteRefName() string

func (RemoteBehind) Repository

func (u RemoteBehind) Repository() string

func (RemoteBehind) RepositoryPath added in v0.8.0

func (u RemoteBehind) RepositoryPath() string

type StashChecker

type StashChecker struct {
}

func NewStashChecker

func NewStashChecker(arguments arguments.Arguments) *StashChecker

func (*StashChecker) Check

func (s *StashChecker) Check(
	directory, repository string,
	repo *git.Repository,
) iter.Seq[types.Response]

func (*StashChecker) ToString

func (s *StashChecker) ToString() string

type StashedChanges

type StashedChanges struct {
	// contains filtered or unexported fields
}

func (StashedChanges) CommitUnderStash

func (u StashedChanges) CommitUnderStash() *object.Commit

func (StashedChanges) Repository

func (u StashedChanges) Repository() string

func (StashedChanges) RepositoryPath added in v0.8.0

func (u StashedChanges) RepositoryPath() string

type StatusHolder

type StatusHolder struct {
	// contains filtered or unexported fields
}

type Untracked

type Untracked struct {
	// contains filtered or unexported fields
}

func (Untracked) Repository

func (u Untracked) Repository() string

func (Untracked) RepositoryPath added in v0.8.0

func (u Untracked) RepositoryPath() string

func (Untracked) UntrackedItem

func (u Untracked) UntrackedItem() string

type WorkTreeChecker

type WorkTreeChecker struct {
	// contains filtered or unexported fields
}

func NewWorkTreeChecker

func NewWorkTreeChecker(
	arguments arguments.Arguments,
) *WorkTreeChecker

func (*WorkTreeChecker) Check

func (w *WorkTreeChecker) Check(
	directory, repository string,
	repo *git.Repository,
) iter.Seq[types.Response]

func (*WorkTreeChecker) ToString

func (w *WorkTreeChecker) ToString() string

Jump to

Keyboard shortcuts

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