go-git.v4: gopkg.in/src-d/go-git.v4/plumbing/revlist Index | Files

package revlist

import "gopkg.in/src-d/go-git.v4/plumbing/revlist"

Package revlist provides support to access the ancestors of commits, in a similar way as the git-rev-list command.

Index

Package Files

revlist.go

func Objects Uses

func Objects(
    s storer.EncodedObjectStorer,
    objs,
    ignore []plumbing.Hash,
) ([]plumbing.Hash, error)

Objects applies a complementary set. It gets all the hashes from all the reachable objects from the given objects. Ignore param are object hashes that we want to ignore on the result. All that objects must be accessible from the object storer.

func ObjectsWithStorageForIgnores Uses

func ObjectsWithStorageForIgnores(
    s, ignoreStore storer.EncodedObjectStorer,
    objs,
    ignore []plumbing.Hash,
) ([]plumbing.Hash, error)

ObjectsWithStorageForIgnores is the same as Objects, but a secondary storage layer can be provided, to be used to finding the full set of objects to be ignored while finding the reachable objects. This is useful when the main `s` storage layer is slow and/or remote, while the ignore list is available somewhere local.

Package revlist imports 6 packages (graph) and is imported by 5 packages. Updated 2019-08-01. Refresh now. Tools for package owners.