gitlib-0.5.1: Higher-level types for working with hlibgit2

Safe HaskellNone

Data.Git.Blob

Synopsis

Documentation

data Blob Source

Constructors

Blob 

Instances

createBlob :: ByteString -> Repository -> BlobSource

Create a new blob in the Repository, with ByteString as its contents.

Note that since empty blobs cannot exist in Git, no means is provided for creating one; if the give string is empty, it is an error.

writeBlob :: Blob -> IO BlobSource

Write out a blob to its repository. If it has already been written, nothing will happen.