gitlib-2.1.0.0: API library for working with Git repositories

Safe HaskellNone

Git.Object

Synopsis

Documentation

listObjectsSource

Arguments

:: Repository m 
=> Maybe (CommitOid m)

A commit we may already have

-> CommitOid m

The commit we need

-> Bool

Include commit trees also?

-> m [ObjectOid m]

All the objects in between

traverseObjects :: Repository m => (ObjectOid m -> m a) -> CommitOid m -> m [a]Source

traverseObjects_ :: Repository m => (ObjectOid m -> m ()) -> CommitOid m -> m ()Source

expandTreeObjects :: Repository m => Conduit (ObjectOid m) m (ObjectOid m)Source

Given a list of objects (commit and top-level trees) return by listObjects, expand it to include all subtrees and blobs as well. Ordering is preserved.