| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Ggit.Functions
Contents
Description
Synopsis
- getFeatures :: (HasCallStack, MonadIO m) => m [FeatureFlags]
- init :: (HasCallStack, MonadIO m) => m ()
- messagePrettify :: (HasCallStack, MonadIO m) => Text -> Bool -> Int8 -> m Text
Methods
getFeatures
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m [FeatureFlags] | Returns: a |
Gets the features of the library.
init
init :: (HasCallStack, MonadIO m) => m () Source #
Call this function before using any other libgit2-glib function.
messagePrettify
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> Bool |
|
| -> Int8 |
|
| -> m Text | Returns: the prettified message. |
Prettify a commit message by removing excess whitespace and making sure the
last line ends with a newline. If stripComments is True, then lines
starting with a commentChar will be removed.