MingaGitExtended.DiffActions (minga_git_extended v0.1.0)

Copy Markdown View Source

Owns the Git snapshots and actions behind editor-managed diff views.

Summary

Functions

Proposes reading the exact status entry outside the editor process.

Types

command()

@type command() ::
  :git_diff_file
  | :git_diff_toggle_staged
  | :git_diff_toggle_layout
  | :next_git_hunk
  | :prev_git_hunk
  | :git_stage_hunk
  | :git_stage_file
  | :git_unstage_file
  | :git_revert_hunk
  | :git_preview_hunk
  | :git_blame_line

Functions

execute(state, atom)

@spec execute(state(), command()) :: state()

propose_status(state, root, arg)

@spec propose_status(state(), String.t(), status_target()) ::
  state() | {:schedule, state(), MingaEditor.Extension.RepositoryJob.t()}

Proposes reading the exact status entry outside the editor process.