Documentation
¶
Index ¶
- type FilterOptions
- type Result
- func (r *Result) FilePathList(options FilterOptions) []string
- func (r *Result) IsFileModified(relPath string, options FilterOptions) bool
- func (r *Result) Status(ctx context.Context, pathMatcher path_matcher.PathMatcher) (*Result, error)
- func (r *Result) ValidateSubmodules(repository *git.Repository, headCommit string) error
- type SubmoduleHasUncommittedChangesError
- type SubmoduleResult
- type UncleanSubmoduleError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterOptions ¶ added in v1.2.2
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
type SubmoduleHasUncommittedChangesError ¶ added in v1.2.6
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
Click to show internal directories.
Click to hide internal directories.