| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Ggit.Objects.DiffOptions
Description
Represents the options used when creating a Diff.
Synopsis
- newtype DiffOptions = DiffOptions (ManagedPtr DiffOptions)
- class (GObject o, IsDescendantOf DiffOptions o) => IsDiffOptions o
- toDiffOptions :: (MonadIO m, IsDiffOptions o) => o -> m DiffOptions
- noDiffOptions :: Maybe DiffOptions
- diffOptionsGetFlags :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> m [DiffOption]
- diffOptionsGetNContextLines :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> m Int32
- diffOptionsGetNInterhunkLines :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> m Int32
- diffOptionsGetNewPrefix :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> m (Maybe Text)
- diffOptionsGetOldPrefix :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> m (Maybe Text)
- diffOptionsGetPathspec :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> m (Maybe [Text])
- diffOptionsNew :: (HasCallStack, MonadIO m) => m (Maybe DiffOptions)
- diffOptionsSetFlags :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> [DiffOption] -> m ()
- diffOptionsSetNContextLines :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> Int32 -> m ()
- diffOptionsSetNInterhunkLines :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> Int32 -> m ()
- diffOptionsSetNewPrefix :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> Text -> m ()
- diffOptionsSetOldPrefix :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> Text -> m ()
- diffOptionsSetPathspec :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> Maybe [Text] -> m ()
- constructDiffOptionsFlags :: IsDiffOptions o => [DiffOption] -> IO (GValueConstruct o)
- getDiffOptionsFlags :: (MonadIO m, IsDiffOptions o) => o -> m [DiffOption]
- setDiffOptionsFlags :: (MonadIO m, IsDiffOptions o) => o -> [DiffOption] -> m ()
- constructDiffOptionsNContextLines :: IsDiffOptions o => Int32 -> IO (GValueConstruct o)
- getDiffOptionsNContextLines :: (MonadIO m, IsDiffOptions o) => o -> m Int32
- setDiffOptionsNContextLines :: (MonadIO m, IsDiffOptions o) => o -> Int32 -> m ()
- constructDiffOptionsNInterhunkLines :: IsDiffOptions o => Int32 -> IO (GValueConstruct o)
- getDiffOptionsNInterhunkLines :: (MonadIO m, IsDiffOptions o) => o -> m Int32
- setDiffOptionsNInterhunkLines :: (MonadIO m, IsDiffOptions o) => o -> Int32 -> m ()
- constructDiffOptionsNewPrefix :: IsDiffOptions o => Text -> IO (GValueConstruct o)
- getDiffOptionsNewPrefix :: (MonadIO m, IsDiffOptions o) => o -> m (Maybe Text)
- setDiffOptionsNewPrefix :: (MonadIO m, IsDiffOptions o) => o -> Text -> m ()
- constructDiffOptionsOldPrefix :: IsDiffOptions o => Text -> IO (GValueConstruct o)
- getDiffOptionsOldPrefix :: (MonadIO m, IsDiffOptions o) => o -> m (Maybe Text)
- setDiffOptionsOldPrefix :: (MonadIO m, IsDiffOptions o) => o -> Text -> m ()
- clearDiffOptionsPathspec :: (MonadIO m, IsDiffOptions o) => o -> m ()
- constructDiffOptionsPathspec :: IsDiffOptions o => [Text] -> IO (GValueConstruct o)
- getDiffOptionsPathspec :: (MonadIO m, IsDiffOptions o) => o -> m (Maybe [Text])
- setDiffOptionsPathspec :: (MonadIO m, IsDiffOptions o) => o -> [Text] -> m ()
Exported types
newtype DiffOptions Source #
Memory-managed wrapper type.
Constructors
| DiffOptions (ManagedPtr DiffOptions) |
Instances
| Eq DiffOptions Source # | |
Defined in GI.Ggit.Objects.DiffOptions | |
| IsGValue DiffOptions Source # | Convert |
Defined in GI.Ggit.Objects.DiffOptions | |
| GObject DiffOptions Source # | |
Defined in GI.Ggit.Objects.DiffOptions Methods gobjectType :: IO GType # | |
| HasParentTypes DiffOptions Source # | |
Defined in GI.Ggit.Objects.DiffOptions | |
| type ParentTypes DiffOptions Source # | |
Defined in GI.Ggit.Objects.DiffOptions | |
class (GObject o, IsDescendantOf DiffOptions o) => IsDiffOptions o Source #
Type class for types which can be safely cast to DiffOptions, for instance with toDiffOptions.
Instances
| (GObject o, IsDescendantOf DiffOptions o) => IsDiffOptions o Source # | |
Defined in GI.Ggit.Objects.DiffOptions | |
toDiffOptions :: (MonadIO m, IsDiffOptions o) => o -> m DiffOptions Source #
Cast to DiffOptions, for types for which this is known to be safe. For general casts, use castTo.
noDiffOptions :: Maybe DiffOptions Source #
A convenience alias for Nothing :: Maybe DiffOptions.
Methods
Overloaded methods
getFlags
Arguments
| :: (HasCallStack, MonadIO m, IsDiffOptions a) | |
| => a |
|
| -> m [DiffOption] | Returns: a |
Get the diff flags.
getNContextLines
diffOptionsGetNContextLines Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDiffOptions a) | |
| => a |
|
| -> m Int32 | Returns: the number of context lines. |
Get the number of context lines to include in the diff.
getNInterhunkLines
diffOptionsGetNInterhunkLines Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDiffOptions a) | |
| => a |
|
| -> m Int32 | Returns: the number of lines. |
Get the number of interhunk lines to include in the diff.
getNewPrefix
diffOptionsGetNewPrefix Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDiffOptions a) | |
| => a |
|
| -> m (Maybe Text) | Returns: the new-prefix string or |
Get the diff new-prefix string.
getOldPrefix
diffOptionsGetOldPrefix Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDiffOptions a) | |
| => a |
|
| -> m (Maybe Text) | Returns: the old-prefix string or |
Get the diff old-prefix string.
getPathspec
diffOptionsGetPathspec Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDiffOptions a) | |
| => a |
|
| -> m (Maybe [Text]) | Returns: the pathspec or |
Get the pathspec.
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m (Maybe DiffOptions) | Returns: a |
Create a new diff options object.
setFlags
Arguments
| :: (HasCallStack, MonadIO m, IsDiffOptions a) | |
| => a |
|
| -> [DiffOption] |
|
| -> m () |
Set the diff flags.
setNContextLines
diffOptionsSetNContextLines Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDiffOptions a) | |
| => a |
|
| -> Int32 |
|
| -> m () |
Set the number of context lines to include in the diff.
setNInterhunkLines
diffOptionsSetNInterhunkLines Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDiffOptions a) | |
| => a |
|
| -> Int32 |
|
| -> m () |
Set the number of interhunk lines to include in the diff.
setNewPrefix
diffOptionsSetNewPrefix Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDiffOptions a) | |
| => a |
|
| -> Text |
|
| -> m () |
Set the diff new-prefix string.
setOldPrefix
diffOptionsSetOldPrefix Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDiffOptions a) | |
| => a |
|
| -> Text |
|
| -> m () |
Get the diff old-prefix string.
setPathspec
diffOptionsSetPathspec Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDiffOptions a) | |
| => a |
|
| -> Maybe [Text] |
|
| -> m () |
Set the pathspec.
Properties
flags
The diff option flags.
constructDiffOptionsFlags :: IsDiffOptions o => [DiffOption] -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “flags” property. This is rarely needed directly, but it is used by new.
getDiffOptionsFlags :: (MonadIO m, IsDiffOptions o) => o -> m [DiffOption] Source #
Get the value of the “flags” property.
When overloading is enabled, this is equivalent to
get diffOptions #flags
setDiffOptionsFlags :: (MonadIO m, IsDiffOptions o) => o -> [DiffOption] -> m () Source #
Set the value of the “flags” property.
When overloading is enabled, this is equivalent to
setdiffOptions [ #flags:=value ]
nContextLines
No description available in the introspection data.
constructDiffOptionsNContextLines :: IsDiffOptions o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “n-context-lines” property. This is rarely needed directly, but it is used by new.
getDiffOptionsNContextLines :: (MonadIO m, IsDiffOptions o) => o -> m Int32 Source #
Get the value of the “n-context-lines” property.
When overloading is enabled, this is equivalent to
get diffOptions #nContextLines
setDiffOptionsNContextLines :: (MonadIO m, IsDiffOptions o) => o -> Int32 -> m () Source #
Set the value of the “n-context-lines” property.
When overloading is enabled, this is equivalent to
setdiffOptions [ #nContextLines:=value ]
nInterhunkLines
No description available in the introspection data.
constructDiffOptionsNInterhunkLines :: IsDiffOptions o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “n-interhunk-lines” property. This is rarely needed directly, but it is used by new.
getDiffOptionsNInterhunkLines :: (MonadIO m, IsDiffOptions o) => o -> m Int32 Source #
Get the value of the “n-interhunk-lines” property.
When overloading is enabled, this is equivalent to
get diffOptions #nInterhunkLines
setDiffOptionsNInterhunkLines :: (MonadIO m, IsDiffOptions o) => o -> Int32 -> m () Source #
Set the value of the “n-interhunk-lines” property.
When overloading is enabled, this is equivalent to
setdiffOptions [ #nInterhunkLines:=value ]
newPrefix
No description available in the introspection data.
constructDiffOptionsNewPrefix :: IsDiffOptions o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “new-prefix” property. This is rarely needed directly, but it is used by new.
getDiffOptionsNewPrefix :: (MonadIO m, IsDiffOptions o) => o -> m (Maybe Text) Source #
Get the value of the “new-prefix” property.
When overloading is enabled, this is equivalent to
get diffOptions #newPrefix
setDiffOptionsNewPrefix :: (MonadIO m, IsDiffOptions o) => o -> Text -> m () Source #
Set the value of the “new-prefix” property.
When overloading is enabled, this is equivalent to
setdiffOptions [ #newPrefix:=value ]
oldPrefix
No description available in the introspection data.
constructDiffOptionsOldPrefix :: IsDiffOptions o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “old-prefix” property. This is rarely needed directly, but it is used by new.
getDiffOptionsOldPrefix :: (MonadIO m, IsDiffOptions o) => o -> m (Maybe Text) Source #
Get the value of the “old-prefix” property.
When overloading is enabled, this is equivalent to
get diffOptions #oldPrefix
setDiffOptionsOldPrefix :: (MonadIO m, IsDiffOptions o) => o -> Text -> m () Source #
Set the value of the “old-prefix” property.
When overloading is enabled, this is equivalent to
setdiffOptions [ #oldPrefix:=value ]
pathspec
No description available in the introspection data.
clearDiffOptionsPathspec :: (MonadIO m, IsDiffOptions o) => o -> m () Source #
Set the value of the “pathspec” property to Nothing.
When overloading is enabled, this is equivalent to
clear #pathspec
constructDiffOptionsPathspec :: IsDiffOptions o => [Text] -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “pathspec” property. This is rarely needed directly, but it is used by new.
getDiffOptionsPathspec :: (MonadIO m, IsDiffOptions o) => o -> m (Maybe [Text]) Source #
Get the value of the “pathspec” property.
When overloading is enabled, this is equivalent to
get diffOptions #pathspec
setDiffOptionsPathspec :: (MonadIO m, IsDiffOptions o) => o -> [Text] -> m () Source #
Set the value of the “pathspec” property.
When overloading is enabled, this is equivalent to
setdiffOptions [ #pathspec:=value ]