revlist

package
v5.6.9 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Objects

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

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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