Skip to main content

Module git

Module git 

Source
Expand description

Git gutter signs from git diff (working tree vs HEAD) + optional blame.

Structs§

BlameLine
GitBlame
GitGutter

Enums§

GitSign

Constants§

BLAME_ANIM_MS
Slide-open / slide-close duration (ms).
BLAME_PANEL_WIDTH
Full blame column width when open (cells).

Functions§

blame_width_for_openness
Column width for current anim openness (eased in UI).
compute_blame
Fixed flame palette — independent of editor theme. Blocking blame computation (runs on a background thread for the panel).
compute_gutter
Blocking gutter computation (runs on a background thread).
flame_color_for
format_blame_gutter
Format blame for a narrow gutter: ab a1b2c3d
parse_blame_porcelain
Parse git blame --line-porcelain into per-line info.
parse_diff_hunks
Parse unified diff hunks (@@ -old,oc +new,nc @@) into line signs.