Class IndexEntry
Representation of a file entry in the index.
Inheritance
Namespace: Dogged
Assembly: Dogged.dll
Syntax
public class IndexEntry : object
Constructors
| Improve this Doc View SourceIndexEntry(String, FileMode, ObjectId)
Create an index entry for a file with the given stage information.
Declaration
public IndexEntry(string path, FileMode mode, ObjectId id)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path to the file |
FileMode | mode | The filemode for the file |
ObjectId | id | The object id for the file |
IndexEntry(String, FileMode, ObjectId, IndexEntryStage, IndexEntryFlags, IndexEntryTime, IndexEntryTime, Int64, Int64, Int64, Int64, Int64)
Create an index entry for a file with the given stage and cache information.
Declaration
public IndexEntry(string path, FileMode mode, ObjectId id, IndexEntryStage stage = default(IndexEntryStage), IndexEntryFlags flags = default(IndexEntryFlags), IndexEntryTime changeTime = null, IndexEntryTime modificationTime = null, long device = null, long inode = null, long userId = null, long groupId = null, long fileSize = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path to the file |
FileMode | mode | The filemode for the file |
ObjectId | id | The object id for the file |
IndexEntryStage | stage | The stage level to add |
IndexEntryFlags | flags | Flags for the index entry |
IndexEntryTime | changeTime | The last changed time for the item |
IndexEntryTime | modificationTime | The last modified time for the item |
System.Int64 | device | The device the working tree file is on |
System.Int64 | inode | The inode for the working tree file |
System.Int64 | userId | The uid that owns the working tree file |
System.Int64 | groupId | The gid that owns the working tree file |
System.Int64 | fileSize | The file size |
Properties
| Improve this Doc View SourceChangeTime
Gets the last changed time for the working tree file.
Declaration
public IndexEntryTime ChangeTime { get; }
Property Value
Type | Description |
---|---|
IndexEntryTime |
Device
Gets the device number for the working tree file.
Declaration
public long Device { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
FileSize
Gets the size of the working tree file.
Declaration
public long FileSize { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Flags
Gets the flags for the index entry.
Declaration
public IndexEntryFlags Flags { get; }
Property Value
Type | Description |
---|---|
IndexEntryFlags |
GroupId
Gets the owner's gid for the working tree file.
Declaration
public long GroupId { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Id
Gets the object id for the index entry.
Declaration
public ObjectId Id { get; }
Property Value
Type | Description |
---|---|
ObjectId |
Inode
Gets the inode for the working tree file.
Declaration
public long Inode { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Mode
Gets the file mode for the index entry.
Declaration
public FileMode Mode { get; }
Property Value
Type | Description |
---|---|
FileMode |
ModificationTime
Gets the last modified time for the working tree file.
Declaration
public IndexEntryTime ModificationTime { get; }
Property Value
Type | Description |
---|---|
IndexEntryTime |
Path
Gets the path for the index entry.
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
System.String |
Stage
Gets the stage level for the index entry.
Declaration
public IndexEntryStage Stage { get; }
Property Value
Type | Description |
---|---|
IndexEntryStage |
UserId
Gets the owner's uid for the working tree file.
Declaration
public long UserId { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |