gi-ggit-1.0.7: libgit2-glib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Functions

Contents

Description

 
Synopsis

Methods

getFeatures

getFeatures Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m [FeatureFlags]

Returns: a FeatureFlags.

Gets the features of the library.

init

init :: (HasCallStack, MonadIO m) => m () Source #

Call this function before using any other libgit2-glib function.

messagePrettify

messagePrettify Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

message: the message.

-> Bool

stripComments: whether to strip comments.

-> Int8

commentChar: comment character.

-> 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.