status

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterOptions added in v1.2.2

type FilterOptions struct {
	StagingOnly      bool
	WorktreeOnly     bool
	IgnoreSubmodules bool
}

type Result

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

func NewResult added in v1.2.6

func NewResult(repositoryFullFilepath string, fileStatusList git.Status, submoduleResults []*SubmoduleResult) *Result

func Status

func Status(ctx context.Context, repository *git.Repository, pathMatcher path_matcher.PathMatcher) (*Result, error)

func (*Result) FilePathList added in v1.2.2

func (r *Result) FilePathList(options FilterOptions) []string

FilePathList method returns file paths relative to the main repository

func (*Result) IsFileModified added in v1.2.5

func (r *Result) IsFileModified(relPath string, options FilterOptions) bool

func (*Result) Status

func (r *Result) Status(ctx context.Context, pathMatcher path_matcher.PathMatcher) (*Result, error)

func (*Result) ValidateSubmodules added in v1.2.6

func (r *Result) ValidateSubmodules(repository *git.Repository, headCommit string) error

type SubmoduleHasUncommittedChangesError added in v1.2.6

type SubmoduleHasUncommittedChangesError struct {
	SubmodulePath string
	FilePathList  []string
	// contains filtered or unexported fields
}

type SubmoduleResult

type SubmoduleResult struct {
	*Result
	// contains filtered or unexported fields
}

func NewSubmoduleResult added in v1.2.6

func NewSubmoduleResult(submoduleName, submodulePath string, submoduleStatus *git.SubmoduleStatus, result *Result) *SubmoduleResult

type UncleanSubmoduleError added in v1.2.6

type UncleanSubmoduleError struct {
	SubmodulePath           string
	ExpectedCommit          string
	CurrentCommit           string
	HeadCommitCurrentCommit string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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