Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
Represents the options used when merging.
Synopsis
- newtype MergeOptions = MergeOptions (ManagedPtr MergeOptions)
- noMergeOptions :: Maybe MergeOptions
- mergeOptionsCopy :: (HasCallStack, MonadIO m) => MergeOptions -> m (Maybe MergeOptions)
- mergeOptionsFree :: (HasCallStack, MonadIO m) => MergeOptions -> m ()
- mergeOptionsGetFileFavor :: (HasCallStack, MonadIO m) => MergeOptions -> m MergeFileFavor
- mergeOptionsGetFileFlags :: (HasCallStack, MonadIO m) => MergeOptions -> m [MergeFileFlags]
- mergeOptionsGetFlags :: (HasCallStack, MonadIO m) => MergeOptions -> m [MergeFlags]
- mergeOptionsGetRenameThreshold :: (HasCallStack, MonadIO m) => MergeOptions -> m Word32
- mergeOptionsGetSimilarityMetric :: (HasCallStack, MonadIO m) => MergeOptions -> m (Maybe DiffSimilarityMetric)
- mergeOptionsGetTargetLimit :: (HasCallStack, MonadIO m) => MergeOptions -> m Word32
- mergeOptionsNew :: (HasCallStack, MonadIO m) => m MergeOptions
- mergeOptionsSetFileFavor :: (HasCallStack, MonadIO m) => MergeOptions -> MergeFileFavor -> m ()
- mergeOptionsSetFileFlags :: (HasCallStack, MonadIO m) => MergeOptions -> [MergeFileFlags] -> m ()
- mergeOptionsSetFlags :: (HasCallStack, MonadIO m) => MergeOptions -> [MergeFlags] -> m ()
- mergeOptionsSetRenameThreshold :: (HasCallStack, MonadIO m) => MergeOptions -> Word32 -> m ()
- mergeOptionsSetSimilarityMetric :: (HasCallStack, MonadIO m) => MergeOptions -> DiffSimilarityMetric -> m ()
- mergeOptionsSetTargetLimit :: (HasCallStack, MonadIO m) => MergeOptions -> Word32 -> m ()
Exported types
newtype MergeOptions Source #
Memory-managed wrapper type.
Instances
BoxedObject MergeOptions Source # | |
Defined in GI.Ggit.Structs.MergeOptions boxedType :: MergeOptions -> IO GType # |
noMergeOptions :: Maybe MergeOptions Source #
A convenience alias for Nothing
:: Maybe
MergeOptions
.
Methods
copy
:: (HasCallStack, MonadIO m) | |
=> MergeOptions |
|
-> m (Maybe MergeOptions) | Returns: a newly allocated |
Copies mergeOptions
into a newly allocated MergeOptions
.
free
:: (HasCallStack, MonadIO m) | |
=> MergeOptions |
|
-> m () |
Frees mergeOptions
.
getFileFavor
mergeOptionsGetFileFavor Source #
:: (HasCallStack, MonadIO m) | |
=> MergeOptions |
|
-> m MergeFileFavor | Returns: the file favor. |
Get flags for handling conflicting content.
getFileFlags
mergeOptionsGetFileFlags Source #
:: (HasCallStack, MonadIO m) | |
=> MergeOptions |
|
-> m [MergeFileFlags] | Returns: the file merging flags. |
Get file merging flags.
getFlags
:: (HasCallStack, MonadIO m) | |
=> MergeOptions |
|
-> m [MergeFlags] | Returns: the flags. |
Get the tree flags to use for merging.
getRenameThreshold
mergeOptionsGetRenameThreshold Source #
:: (HasCallStack, MonadIO m) | |
=> 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 #
:: (HasCallStack, MonadIO m) | |
=> MergeOptions |
|
-> m (Maybe DiffSimilarityMetric) | Returns: the similarity metric, or |
Get the similarity metric.
getTargetLimit
mergeOptionsGetTargetLimit Source #
:: (HasCallStack, MonadIO m) | |
=> 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
:: (HasCallStack, MonadIO m) | |
=> m MergeOptions | Returns: a newly allocated |
Creates a new MergeOptions
.
setFileFavor
mergeOptionsSetFileFavor Source #
:: (HasCallStack, MonadIO m) | |
=> MergeOptions |
|
-> MergeFileFavor |
|
-> m () |
Set flags for handling conflicting content.
setFileFlags
mergeOptionsSetFileFlags Source #
:: (HasCallStack, MonadIO m) | |
=> MergeOptions |
|
-> [MergeFileFlags] |
|
-> m () |
Set file merging flags.
setFlags
mergeOptionsSetFlags :: (HasCallStack, MonadIO m) => MergeOptions -> [MergeFlags] -> m () Source #
No description available in the introspection data.
setRenameThreshold
mergeOptionsSetRenameThreshold Source #
:: (HasCallStack, MonadIO m) | |
=> MergeOptions |
|
-> Word32 |
|
-> 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 #
:: (HasCallStack, MonadIO m) | |
=> MergeOptions |
|
-> DiffSimilarityMetric |
|
-> m () |
Set the similarity metric, or Nothing
for the default similarity metric.
setTargetLimit
mergeOptionsSetTargetLimit Source #
:: (HasCallStack, MonadIO m) | |
=> MergeOptions |
|
-> Word32 |
|
-> 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.