gi-ggit-1.0.14: libgit2-glib bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Ggit.Structs.IndexEntry

Description

Represents an index entry object.

Synopsis

Exported types

newtype IndexEntry Source #

Memory-managed wrapper type.

Constructors

IndexEntry (ManagedPtr IndexEntry) 

Instances

Instances details
Eq IndexEntry Source # 
Instance details

Defined in GI.Ggit.Structs.IndexEntry

GBoxed IndexEntry Source # 
Instance details

Defined in GI.Ggit.Structs.IndexEntry

ManagedPtrNewtype IndexEntry Source # 
Instance details

Defined in GI.Ggit.Structs.IndexEntry

Methods

toManagedPtr :: IndexEntry -> ManagedPtr IndexEntry

TypedObject IndexEntry Source # 
Instance details

Defined in GI.Ggit.Structs.IndexEntry

Methods

glibType :: IO GType

HasParentTypes IndexEntry Source # 
Instance details

Defined in GI.Ggit.Structs.IndexEntry

IsGValue (Maybe IndexEntry) Source #

Convert IndexEntry to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Ggit.Structs.IndexEntry

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe IndexEntry -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe IndexEntry)

type ParentTypes IndexEntry Source # 
Instance details

Defined in GI.Ggit.Structs.IndexEntry

type ParentTypes IndexEntry = '[] :: [Type]

Methods

Click to display all available methods, including inherited ones

Expand

Methods

isConflict, ref, stat, unref.

Getters

getDev, getFileSize, getFlags, getFlagsExtended, getGid, getId, getIno, getMode, getPath, getUid.

Setters

setCommit, setDev, setFileSize, setFlags, setFlagsExtended, setGid, setId, setIno, setMode, setPath, setUid.

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.