Help us shape the future of Go! Take the 2026 Go Developer Survey

pipeline

package
v3.1.25 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlobsFromRevListObjects

func BlobsFromRevListObjects(revListReader *io.PipeReader, shasToCheckWriter *io.PipeWriter, wg *sync.WaitGroup)

BlobsFromRevListObjects reads a RevListAllObjects and only selects blobs

func BlobsLessThan1024FromCatFileBatchCheck

func BlobsLessThan1024FromCatFileBatchCheck(catFileCheckReader *io.PipeReader, shasToBatchWriter *io.PipeWriter, wg *sync.WaitGroup)

BlobsLessThan1024FromCatFileBatchCheck reads a pipeline from cat-file --batch-check and returns the blobs <1024 in size

func CatFileBatch

func CatFileBatch(ctx context.Context, shasToBatchReader *io.PipeReader, catFileBatchWriter *io.PipeWriter, wg *sync.WaitGroup, tmpBasePath string)

CatFileBatch runs cat-file --batch

func CatFileBatchCheck

func CatFileBatchCheck(ctx context.Context, shasToCheckReader *io.PipeReader, catFileCheckWriter *io.PipeWriter, wg *sync.WaitGroup, tmpBasePath string)

CatFileBatchCheck runs cat-file with --batch-check

func CatFileBatchCheckAllObjects

func CatFileBatchCheckAllObjects(ctx context.Context, catFileCheckWriter *io.PipeWriter, wg *sync.WaitGroup, tmpBasePath string, errChan chan<- error)

CatFileBatchCheckAllObjects runs cat-file with --batch-check --batch-all

func NameRevStdin

func NameRevStdin(ctx context.Context, shasToNameReader *io.PipeReader, nameRevStdinWriter *io.PipeWriter, wg *sync.WaitGroup, tmpBasePath string)

NameRevStdin runs name-rev --stdin

func RevListAllObjects

func RevListAllObjects(ctx context.Context, revListWriter *io.PipeWriter, wg *sync.WaitGroup, basePath string, errChan chan<- error)

RevListAllObjects runs rev-list --objects --all and writes to a pipewriter

func RevListObjects

func RevListObjects(ctx context.Context, revListWriter *io.PipeWriter, wg *sync.WaitGroup, tmpBasePath, headSHA, baseSHA string, errChan chan<- error)

RevListObjects run rev-list --objects from headSHA to baseSHA

Types

type LFSResult

type LFSResult struct {
	Name           string
	SHA            string
	Summary        string
	When           time.Time
	ParentHashes   []git.ObjectID
	BranchName     string
	FullCommitName string
}

LFSResult represents commits found using a provided pointer file hash

func FindLFSFile

func FindLFSFile(repo *git.Repository, objectID git.ObjectID) ([]*LFSResult, error)

FindLFSFile finds commits that contain a provided pointer file hash

Source Files

  • catfile.go
  • lfs_common.go
  • lfs_nogogit.go
  • namerev.go
  • revlist.go

Jump to

Keyboard shortcuts

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