Versions in this module Expand all Collapse all v0 v0.2.0 Sep 29, 2023 Changes in this version + func FilterDFSPath(ctx context.Context, dfspath []*object.Commit, s storer.Storer, filter Filter) ([]*object.Commit, error) + func GetDFSPath(ctx context.Context, head *object.Commit, rootcommits []plumbing.Hash, ...) ([]*object.Commit, error) + func RemoveGPGForDFSPath(ctx context.Context, dfspath []*object.Commit, s storer.Storer) ([]*object.Commit, error) v0.1.0 Sep 27, 2023 Changes in this version + func CopyTree(ctx context.Context, t *object.Tree, s storer.Storer) error + func DumpTree(ctx context.Context, prepath []string, tree *object.Tree, filter Filter, ...) error + func ExpandCommit(ctx context.Context, sourceStorer storer.Storer, filteredOrig *object.Commit, ...) (*object.Commit, error) + func ExpandTree(ctx context.Context, sourceStorer storer.Storer, filteredOrig *object.Tree, ...) (*object.Tree, error) + func FilterCommit(ctx context.Context, c *object.Commit, parent *object.Commit, s storer.Storer, ...) (*object.Commit, error) + func FilterLinearHistory(ctx context.Context, hist []*object.Commit, s storer.Storer, filter Filter) ([]*object.Commit, error) + func FilterTree(ctx context.Context, t *object.Tree, prepath []string, s storer.Storer, ...) (*object.Tree, error) + func GetHash(o object.Object) (*plumbing.Hash, error) + func GetLinearHistory(ctx context.Context, head *object.Commit, startHash plumbing.Hash, ...) ([]*object.Commit, error) + func LoadPatternStringFromString(str string, ignoreUnsupported bool) ([]string, error) + func RemoveGPGForLinearHistory(ctx context.Context, hist []*object.Commit, s storer.Storer) ([]*object.Commit, error) + func SetLogger(l *slog.Logger) + type AndFilter struct + func NewAndFilter(filters ...Filter) *AndFilter + func (f *AndFilter) Add(filters ...Filter) + func (f *AndFilter) Filter(paths []string, isdir bool) FilterResult + type CachedFilter struct + func NewCachedFilter(underlying Filter) *CachedFilter + func (f *CachedFilter) Filter(paths []string, isdir bool) FilterResult + func (f *CachedFilter) Reset() + type FilePatchError struct + FromFile string + ToError string + func (e *FilePatchError) Error() string + type Filter interface + Filter func(paths []string, isdir bool) FilterResult + func NewOrFilterForPatterns(patterns ...string) (Filter, error) + type FilterResult uint8 + const FilterResult_DirDive + const FilterResult_In + const FilterResult_Out + func FilterPath(f Filter, fullpath string, isdir bool) FilterResult + func FilterResultsAnd(r ...FilterResult) FilterResult + func FilterResultsOr(r ...FilterResult) FilterResult + func PatternDirFilter(paths []string, filtersegs []PatternFilterSegment) FilterResult + func (i FilterResult) String() string + func (r FilterResult) IsIn() bool + type OrFilter struct + func NewOrFilter(filters ...Filter) *OrFilter + func (f *OrFilter) Add(filters ...Filter) + func (f *OrFilter) Filter(paths []string, isdir bool) FilterResult + type PatternFilter struct + func LoadPatternFilterFromString(str string, ignoreUnsupported bool) ([]*PatternFilter, error) + func NewPatternFilter(pattern string) (*PatternFilter, error) + func (f *PatternFilter) Filter(paths []string, isdir bool) FilterResult + type PatternFilterSegment string + type TrueFilter struct + func NewTrueFilter() *TrueFilter + func (TrueFilter) Filter(path []string, isdir bool) FilterResult