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.Structs.DiffFile

Contents

Description

Represents a file in a Diff.

Synopsis

Exported types

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 OId

Returns: the file's OId.

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 DiffFile

Returns: a DiffFile.

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.