gi-ggit-1.0.7: libgit2-glib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Structs.DiffFile

Contents

Description

Represents a file in a Diff.

Synopsis

Exported types

newtype DiffFile Source #

Memory-managed wrapper type.

Constructors

DiffFile (ManagedPtr DiffFile) 
Instances
BoxedObject DiffFile Source # 
Instance details

Defined in GI.Ggit.Structs.DiffFile

Methods

boxedType :: DiffFile -> IO GType #

noDiffFile :: Maybe DiffFile Source #

A convenience alias for Nothing :: Maybe DiffFile.

Methods

getFlags

diffFileGetFlags Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffFile

file: a DiffFile.

-> m [DiffFlag]

Returns: the file's flags.

Gets the GgitDifflags for file.

getMode

diffFileGetMode Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffFile

file: a DiffFile.

-> m Word16

Returns: the file's mode.

Gets the mode for file.

getOid

diffFileGetOid Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffFile

file: a DiffFile.

-> m (Maybe OId)

Returns: the file's OId or Nothing.

Gets the OId for file.

getPath

diffFileGetPath Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffFile

file: a DiffFile.

-> m (Maybe Text)

Returns: the file's path, or Nothing.

Gets the path of file or Nothing if it is unknown.

getSize

diffFileGetSize Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffFile

file: a DiffFile.

-> m Int64

Returns: the file's size.

Gets the size for file.

ref

diffFileRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffFile

file: a Diff.

-> m (Maybe DiffFile)

Returns: a DiffFile or Nothing.

Atomically increments the reference count of file by one. This function is MT-safe and may be called from any thread.

unref

diffFileUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffFile

file: a DiffFile.

-> m () 

Atomically decrements the reference count of file by one. If the reference count drops to 0, file is freed.