gi-ggit-1.0.1: libgit2-glib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Objects.DiffOptions

Contents

Description

Represents the options used when creating a Diff.

Synopsis

Exported types

Methods

getFlags

diffOptionsGetFlags Source #

Arguments

:: (HasCallStack, MonadIO m, IsDiffOptions a) 
=> a

options: a DiffOptions.

-> m [DiffOption]

Returns: a DiffOption.

Get the diff flags.

getNContextLines

diffOptionsGetNContextLines Source #

Arguments

:: (HasCallStack, MonadIO m, IsDiffOptions a) 
=> a

options: a DiffOptions.

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

options: a DiffOptions.

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

options: a DiffOptions.

-> m Text

Returns: the new-prefix string.

Get the diff new-prefix string.

getOldPrefix

diffOptionsGetOldPrefix Source #

Arguments

:: (HasCallStack, MonadIO m, IsDiffOptions a) 
=> a

options: a DiffOptions.

-> m Text

Returns: the old-prefix string.

Get the diff old-prefix string.

getPathspec

diffOptionsGetPathspec Source #

Arguments

:: (HasCallStack, MonadIO m, IsDiffOptions a) 
=> a

options: a DiffOptions.

-> m [Text]

Returns: the pathspec.

Get the pathspec.

new

diffOptionsNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m DiffOptions

Returns: a DiffOptions.

Create a new diff options object.

setFlags

diffOptionsSetFlags Source #

Arguments

:: (HasCallStack, MonadIO m, IsDiffOptions a) 
=> a

options: a DiffOptions.

-> [DiffOption]

flags: a DiffOption.

-> m () 

Set the diff flags.

setNContextLines

diffOptionsSetNContextLines Source #

Arguments

:: (HasCallStack, MonadIO m, IsDiffOptions a) 
=> a

options: a DiffOptions.

-> Int32

n: the number of lines.

-> m () 

Set the number of context lines to include in the diff.

setNInterhunkLines

diffOptionsSetNInterhunkLines Source #

Arguments

:: (HasCallStack, MonadIO m, IsDiffOptions a) 
=> a

options: a DiffOptions.

-> Int32

n: the number of lines.

-> m () 

Set the number of interhunk lines to include in the diff.

setNewPrefix

diffOptionsSetNewPrefix Source #

Arguments

:: (HasCallStack, MonadIO m, IsDiffOptions a) 
=> a

options: a DiffOptions.

-> Text

prefix: the prefix.

-> m () 

Set the diff new-prefix string.

setOldPrefix

diffOptionsSetOldPrefix Source #

Arguments

:: (HasCallStack, MonadIO m, IsDiffOptions a) 
=> a

options: a DiffOptions.

-> Text

prefix: the prefix.

-> m () 

Get the diff old-prefix string.

setPathspec

diffOptionsSetPathspec Source #

Arguments

:: (HasCallStack, MonadIO m, IsDiffOptions a) 
=> a

options: a DiffOptions.

-> Maybe [Text]

pathspec: the pathspec.

-> m () 

Set the pathspec.

Properties

flags

nContextLines

nInterhunkLines

newPrefix

oldPrefix

pathspec