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

Contents

Description

Represents an index entry object.

Synopsis

Exported types

newtype IndexEntry Source #

Memory-managed wrapper type.

Instances
BoxedObject IndexEntry Source # 
Instance details

Defined in GI.Ggit.Structs.IndexEntry

Methods

getDev

indexEntryGetDev Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> m Word32

Returns: the dev.

Get the dev of the index entry.

getFileSize

indexEntryGetFileSize Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> m Int64

Returns: the file size.

Get the file size of the index entry.

getFlags

indexEntryGetFlags Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> m Word32

Returns: the flags.

Get the flags of the index entry.

getFlagsExtended

indexEntryGetFlagsExtended Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> m Word32

Returns: the extended flags.

Get the extended flags of the index entry.

getGid

indexEntryGetGid Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> m Word32

Returns: the gid.

Get the gid of the index entry.

getId

indexEntryGetId Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> m (Maybe OId)

Returns: the oid or Nothing.

Get the oid of the index entry.

getIno

indexEntryGetIno Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> m Word32

Returns: the ino.

Get the ino of the index entry.

getMode

indexEntryGetMode Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> m Word32

Returns: the mode.

Get the mode of the index entry.

getPath

indexEntryGetPath :: (HasCallStack, MonadIO m) => IndexEntry -> m Text Source #

No description available in the introspection data.

getUid

indexEntryGetUid Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> m Word32

Returns: the uid.

Get the uid of the index entry.

isConflict

indexEntryIsConflict Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> m Bool

Returns: True if the entry is a conflict, or False otherwise.

Get whether the entry represents a conflict.

ref

indexEntryRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> m (Maybe IndexEntry)

Returns: a IndexEntry or Nothing.

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

setCommit

indexEntrySetCommit Source #

Arguments

:: (HasCallStack, MonadIO m, IsCommit a) 
=> IndexEntry

entry: a IndexEntry.

-> a

commit: a Commit.

-> m () 

Set the index entry to point to a given commit. This sets the index entry id to the commit id, changes the mode to GGIT_FILE_MODE_COMMIT and updates the timestamps to when the commit was made.

setDev

indexEntrySetDev Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> Word32

dev: the dev.

-> m () 

Set the dev of the index entry.

setFileSize

indexEntrySetFileSize Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> Int64

fileSize: the file size.

-> m () 

Set the file size of the index entry.

setFlags

indexEntrySetFlags Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> Word32

flags: the flags.

-> m () 

Set the flags of the index entry.

setFlagsExtended

indexEntrySetFlagsExtended Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> Word32

flagsExtended: the extended flags.

-> m () 

Set the extended flags of the index entry.

setGid

indexEntrySetGid Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> Word32

gid: the gid.

-> m () 

Set the gid of the index entry.

setId

indexEntrySetId Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> Maybe OId

id: the oid.

-> m () 

Set the oid of the index entry.

setIno

indexEntrySetIno Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> Word32

ino: the ino.

-> m () 

Set the ino of the index entry.

setMode

indexEntrySetMode Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> Word32

mode: the mode.

-> m () 

Set the mode of the index entry.

setPath

indexEntrySetPath Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> Maybe Text

path: the path.

-> m () 

Set the path of the index entry. The path should be relative to the working directory.

setUid

indexEntrySetUid Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> Word32

uid: the uid.

-> m () 

Set the uid of the index entry.

stat

indexEntryStat Source #

Arguments

:: (HasCallStack, MonadIO m, IsFile a) 
=> IndexEntry

entry: a IndexEntry.

-> a

file: the file to stat.

-> m ()

(Can throw GError)

Fill the entry fields from statting file.

unref

indexEntryUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntry

entry: a IndexEntry.

-> m () 

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