Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GI.Ggit.Structs.IndexEntry
Description
Represents an index entry object.
Synopsis
- newtype IndexEntry = IndexEntry (ManagedPtr IndexEntry)
- indexEntryGetDev :: (HasCallStack, MonadIO m) => IndexEntry -> m Word32
- indexEntryGetFileSize :: (HasCallStack, MonadIO m) => IndexEntry -> m Int64
- indexEntryGetFlags :: (HasCallStack, MonadIO m) => IndexEntry -> m Word32
- indexEntryGetFlagsExtended :: (HasCallStack, MonadIO m) => IndexEntry -> m Word32
- indexEntryGetGid :: (HasCallStack, MonadIO m) => IndexEntry -> m Word32
- indexEntryGetId :: (HasCallStack, MonadIO m) => IndexEntry -> m (Maybe OId)
- indexEntryGetIno :: (HasCallStack, MonadIO m) => IndexEntry -> m Word32
- indexEntryGetMode :: (HasCallStack, MonadIO m) => IndexEntry -> m Word32
- indexEntryGetPath :: (HasCallStack, MonadIO m) => IndexEntry -> m Text
- indexEntryGetUid :: (HasCallStack, MonadIO m) => IndexEntry -> m Word32
- indexEntryIsConflict :: (HasCallStack, MonadIO m) => IndexEntry -> m Bool
- indexEntryRef :: (HasCallStack, MonadIO m) => IndexEntry -> m (Maybe IndexEntry)
- indexEntrySetCommit :: (HasCallStack, MonadIO m, IsCommit a) => IndexEntry -> a -> m ()
- indexEntrySetDev :: (HasCallStack, MonadIO m) => IndexEntry -> Word32 -> m ()
- indexEntrySetFileSize :: (HasCallStack, MonadIO m) => IndexEntry -> Int64 -> m ()
- indexEntrySetFlags :: (HasCallStack, MonadIO m) => IndexEntry -> Word32 -> m ()
- indexEntrySetFlagsExtended :: (HasCallStack, MonadIO m) => IndexEntry -> Word32 -> m ()
- indexEntrySetGid :: (HasCallStack, MonadIO m) => IndexEntry -> Word32 -> m ()
- indexEntrySetId :: (HasCallStack, MonadIO m) => IndexEntry -> Maybe OId -> m ()
- indexEntrySetIno :: (HasCallStack, MonadIO m) => IndexEntry -> Word32 -> m ()
- indexEntrySetMode :: (HasCallStack, MonadIO m) => IndexEntry -> Word32 -> m ()
- indexEntrySetPath :: (HasCallStack, MonadIO m) => IndexEntry -> Maybe Text -> m ()
- indexEntrySetUid :: (HasCallStack, MonadIO m) => IndexEntry -> Word32 -> m ()
- indexEntryStat :: (HasCallStack, MonadIO m, IsFile a) => IndexEntry -> a -> m ()
- indexEntryUnref :: (HasCallStack, MonadIO m) => IndexEntry -> m ()
Exported types
newtype IndexEntry Source #
Memory-managed wrapper type.
Constructors
IndexEntry (ManagedPtr IndexEntry) |
Instances
Eq IndexEntry Source # | |
Defined in GI.Ggit.Structs.IndexEntry | |
GBoxed IndexEntry Source # | |
Defined in GI.Ggit.Structs.IndexEntry | |
ManagedPtrNewtype IndexEntry Source # | |
Defined in GI.Ggit.Structs.IndexEntry Methods | |
TypedObject IndexEntry Source # | |
Defined in GI.Ggit.Structs.IndexEntry | |
HasParentTypes IndexEntry Source # | |
Defined in GI.Ggit.Structs.IndexEntry | |
IsGValue (Maybe IndexEntry) Source # | Convert |
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 # | |
Defined in GI.Ggit.Structs.IndexEntry |
Methods
Click to display all available methods, including inherited ones
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
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m Word32 | Returns: the dev. |
Get the dev of the index entry.
getFileSize
indexEntryGetFileSize Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m Int64 | Returns: the file size. |
Get the file size of the index entry.
getFlags
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m Word32 | Returns: the flags. |
Get the flags of the index entry.
getFlagsExtended
indexEntryGetFlagsExtended Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m Word32 | Returns: the extended flags. |
Get the extended flags of the index entry.
getGid
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m Word32 | Returns: the gid. |
Get the gid of the index entry.
getId
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m (Maybe OId) | Returns: the oid or |
Get the oid of the index entry.
getIno
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m Word32 | Returns: the ino. |
Get the ino of the index entry.
getMode
Arguments
:: (HasCallStack, MonadIO m) | |
=> 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
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m Word32 | Returns: the uid. |
Get the uid of the index entry.
isConflict
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m Bool | Returns: |
Get whether the entry represents a conflict.
ref
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m (Maybe IndexEntry) | Returns: a |
Atomically increments the reference count of entry
by one.
This function is MT-safe and may be called from any thread.
setCommit
Arguments
:: (HasCallStack, MonadIO m, IsCommit a) | |
=> IndexEntry |
|
-> a |
|
-> 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
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Word32 |
|
-> m () |
Set the dev of the index entry.
setFileSize
indexEntrySetFileSize Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Int64 |
|
-> m () |
Set the file size of the index entry.
setFlags
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Word32 |
|
-> m () |
Set the flags of the index entry.
setFlagsExtended
indexEntrySetFlagsExtended Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Word32 |
|
-> m () |
Set the extended flags of the index entry.
setGid
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Word32 |
|
-> m () |
Set the gid of the index entry.
setId
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Maybe OId |
|
-> m () |
Set the oid of the index entry.
setIno
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Word32 |
|
-> m () |
Set the ino of the index entry.
setMode
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Word32 |
|
-> m () |
Set the mode of the index entry.
setPath
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Maybe Text |
|
-> m () |
Set the path of the index entry. The path should be relative to the working directory.
setUid
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Word32 |
|
-> m () |
Set the uid of the index entry.
stat
Arguments
:: (HasCallStack, MonadIO m, IsFile a) | |
=> IndexEntry |
|
-> a |
|
-> m () | (Can throw |
Fill the entry fields from statting file
.
unref
Arguments
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m () |
Atomically decrements the reference count of entry
by one.
If the reference count drops to 0, entry
is freed.