Minga.Git.TrackedFile (minga_sdk v0.1.2)

Copy Markdown View Source

A Git-tracked buffer observation and its changes against cached HEAD.

path is relative to root. base is nil when the file is absent from HEAD. content, cursor, and version describe one buffer state.

Summary

Types

t()

@type t() :: %Minga.Git.TrackedFile{
  base: binary() | nil,
  content: binary(),
  cursor: {line :: non_neg_integer(), col :: non_neg_integer()},
  hunks: [Minga.Git.change()],
  path: binary(),
  root: binary(),
  version: non_neg_integer()
}