轻量级 VSCode Git 分支管理插件 — 专注分支视图、行内 Blame、安全批量删除。
功能
- 分支视图:Local/Remote、路径、平铺三种分组;当前分支 ↑↓ 状态
- 分支操作:Create、Checkout、Delete、Merge into Current、Push/Pull
- 受保护分支:
main/master及自定义分支禁止删除 - 批量删除操作手册:提供 Shell 命令参考,按前缀/时间/合并状态过滤
- 行内 Blame:当前行作者、时间、提交信息(hover 查看完整信息 + 对比/复制)
- 文件头部 Blame:文件最后提交者 CodeLens 显示
- 冲突处理:检测 TortoiseGit / SourceTree 并调起,未安装则文字提示
不提供 「Rebase xxx onto 某分支」;仅支持 Merge xxx into Current。
配置
| 配置项 | 默认 | 说明 |
|---|---|---|
gitFiaox.gitPath |
git |
Git 路径 |
gitFiaox.blame.enabled |
true |
行内 Blame |
gitFiaox.blame.debounce |
300 |
Blame 更新延迟(毫秒) |
gitFiaox.blame.maxMessageLength |
50 |
提交信息截断长度 |
gitFiaox.blame.relativeDays |
7 |
相对时间阈值(天),超出显示绝对时间 |
gitFiaox.blame.color |
#80808055 |
行内 Blame 文字颜色 |
gitFiaox.protectedBranches |
[] |
额外受保护分支 |
gitFiaox.viewLocation |
sidebar |
视图位置:主侧边栏 / 副侧边栏 / 底部面板 |
gitFiaox.branch.groupMode |
path |
分支分组模式:path / flat |
gitFiaox.conflictTools.tortoiseGitPath |
"" |
TortoiseGit 可执行文件路径 |
gitFiaox.conflictTools.sourceTreePath |
"" |
SourceTree 可执行文件路径 |
与其他 Blame 插件共存:若同时使用 GitLens 等提供行内 Blame 的插件,可通过以下配置关闭 Fiaox 的 Blame 避免重复显示:
"gitFiaox.blame.enabled": false
开发
bun install # 依赖安装(isolated 模式,同 pnpm)
bun run compile # 编译
bun run watch # 监听编译
# F5 启动 Extension Development Host
bun run package # 生成 .vsix
bun test # 运行测试
包管理:Bun + npmmirror 镜像,配置见 bunfig.toml / .npmrc。
License
MIT