Safe Haskell | None |
---|
Data.Git.Blob
- data Blob = Blob {}
- data BlobContents
- type ByteSource = GSource IO ByteString
- newBlobBase :: Blob -> Base Blob
- createBlob :: Repository -> ByteString -> Blob
- getBlobContents :: Blob -> IO (Blob, BlobContents)
- blobSourceToString :: BlobContents -> IO (Maybe ByteString)
- lookupBlob :: Repository -> Oid -> IO (Maybe Blob)
- writeBlob :: Blob -> IO Blob
Documentation
Constructors
Blob | |
Fields
|
type ByteSource = GSource IO ByteStringSource
newBlobBase :: Blob -> Base BlobSource
createBlob :: Repository -> ByteString -> 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.
getBlobContents :: Blob -> IO (Blob, BlobContents)Source
lookupBlob :: Repository -> Oid -> IO (Maybe Blob)Source