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