Gjsify LogoGjsify Logo

Represents a blame hunk.

record

Hierarchy

  • BlameHunk

Index

Constructors

Properties

name: string

Methods

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

    Returns number

  • get_lines_in_hunk(): number
  • get_orig_commit_id(): 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

  • get_orig_path(): 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

  • get_orig_start_line_number(): 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

  • is_boundary(): 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

  • 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