Show / Hide Table of Contents

Class IndexEntry

Representation of a file entry in the index.

Inheritance
System.Object
IndexEntry
Namespace: Dogged
Assembly: Dogged.dll
Syntax
public class IndexEntry : object

Constructors

| Improve this Doc View Source

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

| Improve this Doc View Source

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 Source

ChangeTime

Gets the last changed time for the working tree file.

Declaration
public IndexEntryTime ChangeTime { get; }
Property Value
Type Description
IndexEntryTime
| Improve this Doc View Source

Device

Gets the device number for the working tree file.

Declaration
public long Device { get; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

FileSize

Gets the size of the working tree file.

Declaration
public long FileSize { get; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

Flags

Gets the flags for the index entry.

Declaration
public IndexEntryFlags Flags { get; }
Property Value
Type Description
IndexEntryFlags
| Improve this Doc View Source

GroupId

Gets the owner's gid for the working tree file.

Declaration
public long GroupId { get; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

Id

Gets the object id for the index entry.

Declaration
public ObjectId Id { get; }
Property Value
Type Description
ObjectId
| Improve this Doc View Source

Inode

Gets the inode for the working tree file.

Declaration
public long Inode { get; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

Mode

Gets the file mode for the index entry.

Declaration
public FileMode Mode { get; }
Property Value
Type Description
FileMode
| Improve this Doc View Source

ModificationTime

Gets the last modified time for the working tree file.

Declaration
public IndexEntryTime ModificationTime { get; }
Property Value
Type Description
IndexEntryTime
| Improve this Doc View Source

Path

Gets the path for the index entry.

Declaration
public string Path { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Stage

Gets the stage level for the index entry.

Declaration
public IndexEntryStage Stage { get; }
Property Value
Type Description
IndexEntryStage
| Improve this Doc View Source

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 Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX