gi-ggit-1.0.8: libgit2-glib bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Structs.MergeOptions

Description

Represents the options used when merging.

Synopsis

Exported types

newtype MergeOptions Source #

Memory-managed wrapper type.

Instances

Instances details
Eq MergeOptions Source # 
Instance details

Defined in GI.Ggit.Structs.MergeOptions

IsGValue MergeOptions Source #

Convert MergeOptions to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Ggit.Structs.MergeOptions

BoxedObject MergeOptions Source # 
Instance details

Defined in GI.Ggit.Structs.MergeOptions

Methods

Overloaded methods

copy

mergeOptionsCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MergeOptions

mergeOptions: a MergeOptions.

-> m (Maybe MergeOptions)

Returns: a newly allocated MergeOptions or Nothing.

Copies mergeOptions into a newly allocated MergeOptions.

free

mergeOptionsFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MergeOptions

mergeOptions: a MergeOptions.

-> m () 

Frees mergeOptions.

getFileFavor

mergeOptionsGetFileFavor Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MergeOptions

mergeOptions: a MergeOptions.

-> m MergeFileFavor

Returns: the file favor.

Get flags for handling conflicting content.

getFileFlags

mergeOptionsGetFileFlags Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MergeOptions

mergeOptions: a MergeOptions.

-> m [MergeFileFlags]

Returns: the file merging flags.

Get file merging flags.

getFlags

mergeOptionsGetFlags Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MergeOptions

mergeOptions: a MergeOptions.

-> m [MergeFlags]

Returns: the flags.

Get the tree flags to use for merging.

getRenameThreshold

mergeOptionsGetRenameThreshold Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MergeOptions

mergeOptions: a MergeOptions.

-> m Word32

Returns: the rename threshold.

Get the rename threshold (defaults to 50). If GGIT_MERGE_TREE_FIND_RENAMES is enabled, added files will be compared with deleted files to determine their similarity. Files that are more similar than the rename threshold (percentage-wise) will be treated as a rename.

getSimilarityMetric

mergeOptionsGetSimilarityMetric Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MergeOptions

mergeOptions: a MergeOptions.

-> m (Maybe DiffSimilarityMetric)

Returns: the similarity metric, or Nothing.

Get the similarity metric.

getTargetLimit

mergeOptionsGetTargetLimit Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MergeOptions

mergeOptions: a MergeOptions.

-> m Word32

Returns: the target limit.

Get the maximum number of similarity sources to examine for renames (defaults to 200). If the number of rename candidates (add / delete pairs) is greater than this value, inexact rename detection is aborted.

new

mergeOptionsNew Source #

Arguments

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

Returns: a newly allocated MergeOptions.

Creates a new MergeOptions.

setFileFavor

mergeOptionsSetFileFavor Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MergeOptions

mergeOptions: a MergeOptions.

-> MergeFileFavor

fileFavor: the file favor.

-> m () 

Set flags for handling conflicting content.

setFileFlags

mergeOptionsSetFileFlags Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MergeOptions

mergeOptions: a MergeOptions.

-> [MergeFileFlags]

fileFlags: the file flags.

-> m () 

Set file merging flags.

setFlags

mergeOptionsSetFlags :: (HasCallStack, MonadIO m) => MergeOptions -> [MergeFlags] -> m () Source #

No description available in the introspection data.

setRenameThreshold

mergeOptionsSetRenameThreshold Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MergeOptions

mergeOptions: a MergeOptions.

-> Word32

renameThreshold: similarity to consider a file renamed.

-> m () 

Set the rename threshold (defaults to 50). If GGIT_MERGE_TREE_FIND_RENAMES is enabled, added files will be compared with deleted files to determine their similarity. Files that are more similar than the rename threshold (percentage-wise) will be treated as a rename.

setSimilarityMetric

mergeOptionsSetSimilarityMetric Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MergeOptions

mergeOptions: a MergeOptions.

-> DiffSimilarityMetric

metric: a GgitSimilarityMetric.

-> m () 

Set the similarity metric, or Nothing for the default similarity metric.

setTargetLimit

mergeOptionsSetTargetLimit Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MergeOptions

mergeOptions: a MergeOptions.

-> Word32

targetLimit: maximum similarity source to examine for renames.

-> m () 

Set the maximum number of similarity sources to examine for renames (defaults to 200). If the number of rename candidates (add / delete pairs) is greater than this value, inexact rename detection is aborted.