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 |
Represents a mailmap.
Synopsis
- newtype Mailmap = Mailmap (ManagedPtr Mailmap)
- class (GObject o, IsDescendantOf Mailmap o) => IsMailmap o
- toMailmap :: (MonadIO m, IsMailmap o) => o -> m Mailmap
- mailmapAddEntry :: (HasCallStack, MonadIO m, IsMailmap a) => a -> Maybe Text -> Maybe Text -> Maybe Text -> Text -> m ()
- mailmapNew :: (HasCallStack, MonadIO m) => m (Maybe Mailmap)
- mailmapNewFromRepository :: (HasCallStack, MonadIO m, IsRepository a) => a -> m (Maybe Mailmap)
- mailmapResolve :: (HasCallStack, MonadIO m, IsMailmap a) => a -> Text -> Text -> m (Text, Text)
- mailmapResolveSignature :: (HasCallStack, MonadIO m, IsMailmap a, IsSignature b) => a -> b -> m (Maybe Signature)
Exported types
Memory-managed wrapper type.
Instances
Eq Mailmap Source # | |
GObject Mailmap Source # | |
Defined in GI.Ggit.Objects.Mailmap | |
ManagedPtrNewtype Mailmap Source # | |
Defined in GI.Ggit.Objects.Mailmap toManagedPtr :: Mailmap -> ManagedPtr Mailmap | |
TypedObject Mailmap Source # | |
Defined in GI.Ggit.Objects.Mailmap | |
HasParentTypes Mailmap Source # | |
Defined in GI.Ggit.Objects.Mailmap | |
IsGValue (Maybe Mailmap) Source # | Convert |
Defined in GI.Ggit.Objects.Mailmap gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Mailmap -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Mailmap) | |
type ParentTypes Mailmap Source # | |
Defined in GI.Ggit.Objects.Mailmap |
class (GObject o, IsDescendantOf Mailmap o) => IsMailmap o Source #
Instances
(GObject o, IsDescendantOf Mailmap o) => IsMailmap o Source # | |
Defined in GI.Ggit.Objects.Mailmap |
Methods
Click to display all available methods, including inherited ones
Methods
addEntry, bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, resolve, resolveSignature, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
addEntry
:: (HasCallStack, MonadIO m, IsMailmap a) | |
=> a |
|
-> Maybe Text |
|
-> Maybe Text |
|
-> Maybe Text |
|
-> Text |
|
-> m () | (Can throw |
new
:: (HasCallStack, MonadIO m) | |
=> m (Maybe Mailmap) | Returns: a newly allocated |
Creates a new Mailmap
.
newFromRepository
mailmapNewFromRepository Source #
:: (HasCallStack, MonadIO m, IsRepository a) | |
=> a |
|
-> m (Maybe Mailmap) | Returns: a newly allocated |
Creates a new Mailmap
and loads mailmap files according to the
configuration of repository
.
resolve
:: (HasCallStack, MonadIO m, IsMailmap a) | |
=> a |
|
-> Text |
|
-> Text |
|
-> m (Text, Text) | (Can throw |
Resolves replaceName
and replaceEmail
to realName
and realEmail
.
If mailmap
is NULL
, no substitution is performed.
resolveSignature
mailmapResolveSignature Source #
:: (HasCallStack, MonadIO m, IsMailmap a, IsSignature b) | |
=> a |
|
-> b |
|
-> m (Maybe Signature) | Returns: The corrected signature or |
Resolves signature
to use the real name and email according to mailmap
.
If mailmap
is NULL
, no substitution is performed, but a new signature is
still allocated and returned.