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 |
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.
IndexEntry (ManagedPtr IndexEntry) |
Instances
Eq IndexEntry Source # | |
Defined in GI.Ggit.Structs.IndexEntry (==) :: IndexEntry -> IndexEntry -> Bool # (/=) :: IndexEntry -> IndexEntry -> Bool # | |
GBoxed IndexEntry Source # | |
Defined in GI.Ggit.Structs.IndexEntry | |
ManagedPtrNewtype IndexEntry Source # | |
Defined in GI.Ggit.Structs.IndexEntry toManagedPtr :: IndexEntry -> ManagedPtr IndexEntry | |
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 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
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m Word32 | Returns: the dev. |
Get the dev of the index entry.
getFileSize
indexEntryGetFileSize Source #
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m Int64 | Returns: the file size. |
Get the file size of the index entry.
getFlags
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m Word32 | Returns: the flags. |
Get the flags of the index entry.
getFlagsExtended
indexEntryGetFlagsExtended Source #
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m Word32 | Returns: the extended flags. |
Get the extended flags of the index entry.
getGid
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m Word32 | Returns: the gid. |
Get the gid of the index entry.
getId
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m (Maybe OId) | Returns: the oid or |
Get the oid of the index entry.
getIno
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m Word32 | Returns: the ino. |
Get the ino of the index entry.
getMode
:: (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
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m Word32 | Returns: the uid. |
Get the uid of the index entry.
isConflict
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m Bool | Returns: |
Get whether the entry represents a conflict.
ref
:: (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
:: (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
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Word32 |
|
-> m () |
Set the dev of the index entry.
setFileSize
indexEntrySetFileSize Source #
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Int64 |
|
-> m () |
Set the file size of the index entry.
setFlags
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Word32 |
|
-> m () |
Set the flags of the index entry.
setFlagsExtended
indexEntrySetFlagsExtended Source #
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Word32 |
|
-> m () |
Set the extended flags of the index entry.
setGid
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Word32 |
|
-> m () |
Set the gid of the index entry.
setId
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Maybe OId |
|
-> m () |
Set the oid of the index entry.
setIno
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Word32 |
|
-> m () |
Set the ino of the index entry.
setMode
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Word32 |
|
-> m () |
Set the mode of the index entry.
setPath
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Maybe Text |
|
-> m () |
Set the path of the index entry. The path should be relative to the working directory.
setUid
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> Word32 |
|
-> m () |
Set the uid of the index entry.
stat
:: (HasCallStack, MonadIO m, IsFile a) | |
=> IndexEntry |
|
-> a |
|
-> m () | (Can throw |
Fill the entry fields from statting file
.
unref
:: (HasCallStack, MonadIO m) | |
=> IndexEntry |
|
-> m () |
Atomically decrements the reference count of entry
by one.
If the reference count drops to 0, entry
is freed.