Gjsify LogoGjsify Logo

Represents a blame hunk.

record

Hierarchy

  • BlameHunk

Index

Constructors

Properties

name: string

Methods

  • getFinalCommitId(): OId
  • getFinalStartLineNumber(): number
  • Get the line number where the hunk begins in the final version of the file. Line numbers start at 1.

    Returns number

  • getLinesInHunk(): number
  • getOrigCommitId(): OId
  • Get the id of the commit where the hunk was found. This is usually the same the final commit id, except when #GGIT_BLAME_TRACK_COPIES_ANY_COMMIT was used.

    Returns OId

  • getOrigPath(): string
  • Get the path of the file where this hunk originated, as of the commit specified by #ggit_blame_hunk_get_orig_commit_id.

    Returns string

  • getOrigStartLineNumber(): number
  • Get the line number where the hunk begins in the file specified by #ggit_blame_hunk_get_orig_path at the commit specified by #ggit_blame_hunk_get_orig_commit_id. Line numbers start at 1.

    Returns number

  • isBoundary(): boolean
  • Get whether the hunk has been tracked to a boundary commit (the root, or the commit specified in #ggit_blame_options_set_oldest_commit).

    Returns boolean

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

    Returns BlameHunk

  • unref(): void
  • Atomically decrements the reference count of blame_hunk by one. If the reference count drops to 0, blame_hunk 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