Gjsify LogoGjsify Logo

Represents an index entry object.

record

Hierarchy

  • IndexEntry

Index

Constructors

Properties

name: string

Methods

  • getDev(): number
  • getFileSize(): number
  • getFlags(): number
  • getFlagsExtended(): number
  • getGid(): number
  • getIno(): number
  • getMode(): number
  • getPath(): string
  • getUid(): number
  • isConflict(): boolean
  • Get whether the entry represents a conflict.

    Returns boolean

  • Atomically increments the reference count of entry by one. This function is MT-safe and may be called from any thread.

    Returns Ggit.IndexEntry

  • 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.

    Parameters

    Returns void

  • setDev(dev: number): void
  • Set the dev of the index entry.

    Parameters

    • dev: number

      the dev.

    Returns void

  • setFileSize(fileSize: number): void
  • Set the file size of the index entry.

    Parameters

    • fileSize: number

      the file size.

    Returns void

  • setFlags(flags: number): void
  • Set the flags of the index entry.

    Parameters

    • flags: number

      the flags.

    Returns void

  • setFlagsExtended(flagsExtended: number): void
  • Set the extended flags of the index entry.

    Parameters

    • flagsExtended: number

      the extended flags.

    Returns void

  • setGid(gid: number): void
  • Set the gid of the index entry.

    Parameters

    • gid: number

      the gid.

    Returns void

  • setId(id: OId): void
  • setIno(ino: number): void
  • Set the ino of the index entry.

    Parameters

    • ino: number

      the ino.

    Returns void

  • setMode(mode: number): void
  • Set the mode of the index entry.

    Parameters

    • mode: number

      the mode.

    Returns void

  • setPath(path: string): void
  • Set the path of the index entry. The path should be relative to the working directory.

    Parameters

    • path: string

      the path.

    Returns void

  • setUid(uid: number): void
  • Set the uid of the index entry.

    Parameters

    • uid: number

      the uid.

    Returns void

  • Fill the entry fields from statting file.

    Parameters

    Returns boolean

  • unref(): void
  • Atomically decrements the reference count of entry by one. If the reference count drops to 0, entry is freed.

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method