Expand description
A thin wrapper around the native git CLI.
All git interaction is done by shelling out (the same route lazygit / IDEA
take), so everything the user has already configured is inherited:
credentials, hooks, merge strategies, rerere, and so on. Arguments are
always passed as arrays and never go through a shell, ruling out injection
by construction; commands that may create commits run with
GIT_EDITOR=true so no editor pops up and hangs the TUI.
Structs§
- Conflicted
File - 一个处于冲突状态的文件及其在 index 中的 stage 分布。
- Git
- git 调用上下文:锚定仓库根目录,verbose 时回显执行的命令。
- Repo
Vitals - 仓库体征:主菜单 RPG 状态面板展示的数据,打开菜单时查询一次。