| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Ggit.Objects.DiffOptions
Contents
Description
Represents the options used when creating a Diff.
- newtype DiffOptions = DiffOptions (ManagedPtr DiffOptions)
- class GObject 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 Text
- diffOptionsGetOldPrefix :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> m Text
- diffOptionsGetPathspec :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> m [Text]
- diffOptionsNew :: (HasCallStack, MonadIO m) => m 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 Text
- setDiffOptionsNewPrefix :: (MonadIO m, IsDiffOptions o) => o -> Text -> m ()
- constructDiffOptionsOldPrefix :: IsDiffOptions o => Text -> IO (GValueConstruct o)
- getDiffOptionsOldPrefix :: (MonadIO m, IsDiffOptions o) => o -> m 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 [Text]
- setDiffOptionsPathspec :: (MonadIO m, IsDiffOptions o) => o -> [Text] -> m ()
Exported types
class GObject o => IsDiffOptions o Source #
Instances
toDiffOptions :: (MonadIO m, IsDiffOptions o) => o -> m DiffOptions Source #
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 Text | Returns: the new-prefix string. |
Get the diff new-prefix string.
getOldPrefix
diffOptionsGetOldPrefix Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDiffOptions a) | |
| => a |
|
| -> m Text | Returns: the old-prefix string. |
Get the diff old-prefix string.
getPathspec
diffOptionsGetPathspec Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDiffOptions a) | |
| => a |
|
| -> m [Text] | Returns: the pathspec. |
Get the pathspec.
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m 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
constructDiffOptionsFlags :: IsDiffOptions o => [DiffOption] -> IO (GValueConstruct o) Source #
getDiffOptionsFlags :: (MonadIO m, IsDiffOptions o) => o -> m [DiffOption] Source #
setDiffOptionsFlags :: (MonadIO m, IsDiffOptions o) => o -> [DiffOption] -> m () Source #
nContextLines
constructDiffOptionsNContextLines :: IsDiffOptions o => Int32 -> IO (GValueConstruct o) Source #
getDiffOptionsNContextLines :: (MonadIO m, IsDiffOptions o) => o -> m Int32 Source #
setDiffOptionsNContextLines :: (MonadIO m, IsDiffOptions o) => o -> Int32 -> m () Source #
nInterhunkLines
constructDiffOptionsNInterhunkLines :: IsDiffOptions o => Int32 -> IO (GValueConstruct o) Source #
getDiffOptionsNInterhunkLines :: (MonadIO m, IsDiffOptions o) => o -> m Int32 Source #
setDiffOptionsNInterhunkLines :: (MonadIO m, IsDiffOptions o) => o -> Int32 -> m () Source #
newPrefix
constructDiffOptionsNewPrefix :: IsDiffOptions o => Text -> IO (GValueConstruct o) Source #
getDiffOptionsNewPrefix :: (MonadIO m, IsDiffOptions o) => o -> m Text Source #
setDiffOptionsNewPrefix :: (MonadIO m, IsDiffOptions o) => o -> Text -> m () Source #
oldPrefix
constructDiffOptionsOldPrefix :: IsDiffOptions o => Text -> IO (GValueConstruct o) Source #
getDiffOptionsOldPrefix :: (MonadIO m, IsDiffOptions o) => o -> m Text Source #
setDiffOptionsOldPrefix :: (MonadIO m, IsDiffOptions o) => o -> Text -> m () Source #
pathspec
clearDiffOptionsPathspec :: (MonadIO m, IsDiffOptions o) => o -> m () Source #
constructDiffOptionsPathspec :: IsDiffOptions o => [Text] -> IO (GValueConstruct o) Source #
getDiffOptionsPathspec :: (MonadIO m, IsDiffOptions o) => o -> m [Text] Source #
setDiffOptionsPathspec :: (MonadIO m, IsDiffOptions o) => o -> [Text] -> m () Source #