Gjsify LogoGjsify Logo

Represents an index entry object.

record

Hierarchy

  • IndexEntry

Index

Constructors

Properties

name: string

Methods

  • get_dev(): number
  • get_file_size(): number
  • get_flags(): number
  • get_flags_extended(): number
  • get_gid(): number
  • get_ino(): number
  • get_mode(): number
  • get_path(): string
  • get_uid(): number
  • is_conflict(): boolean
  • 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

  • set_dev(dev: number): void
  • set_file_size(file_size: number): void
  • set_flags(flags: number): void
  • set_flags_extended(flags_extended: number): void
  • Set the extended flags of the index entry.

    Parameters

    • flags_extended: number

      the extended flags.

    Returns void

  • set_gid(gid: number): void
  • set_id(id: OId): void
  • set_ino(ino: number): void
  • set_mode(mode: number): void
  • set_path(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

  • set_uid(uid: number): void
  • 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