Repository navigation
v1.5.0
中文
新增:Git 总览左列状态栏
- 左侧新增常驻状态栏:远程仓库链接(仅 GitHub 项目显示图标,点击在新标签页打开仓库主页;内嵌凭据已剥除,不泄入链接)。
- 右侧显示当前分支的同步状态(已同步 / 领先 / 落后 / 分叉 / 无上游)+「检查同步」按钮(
git fetch --all --prune,回灌最新快照刷新 ahead/behind)。 - 仅在「严格落后」(落后 > 0 且领先 = 0)时出现「拉取同步」按钮:走
git pull --ff-only快进拉取,确认框预览将引入的提交数 / 文件数 / 增删行(全本地统计、无网络),不产生合并提交、不动未提交内容。 - 网络命令注入
GIT_TERMINAL_PROMPT=0,遇凭据/主机密钥交互快速失败而非挂起。 - 分支列表行新增选中背景样式。
修复
parseRefs按refs/heads|remotes|tags正确分类,斜杠本地分支(如feat/x)不再被误判为远程 ref 标签。- 提交历史图:tip 提交圆点上方不再残留悬空半线。
内部
- 状态栏渲染拆分到
overview-statusbar.tsx,清理冗余 i18n 文案与导出。
兼容性:无破坏性改动,无新增第三方依赖。
English
New: Git overview left-column status bar
- A persistent status bar: remote repository link (icon shown only for GitHub projects, opens the repo home in a new tab; embedded credentials are stripped from the URL).
- Branch sync state (synced / ahead / behind / diverged / no upstream) + a Check sync button (
git fetch --all --prune, feeds a fresh snapshot back to refresh ahead/behind). - A Pull button appears only when strictly behind (behind > 0 and ahead = 0): a
git pull --ff-onlyfast-forward, with a confirm dialog previewing the incoming commits / files / ± lines (all computed locally, no network). No merge commit, uncommitted work untouched. GIT_TERMINAL_PROMPT=0on network commands so credential/host-key prompts fail fast instead of hanging.- Branch-list rows gained a selection background.
Fixes
parseRefsclassifies byrefs/heads|remotes|tags; a slashed local branch (e.g.feat/x) is no longer misclassified as a remote ref chip.- Commit graph: no dangling half-line above a tip commit's node.
Internal
- Status bar extracted into
overview-statusbar.tsx; dead i18n strings and a stray export removed.
No breaking changes, no new third-party dependencies.
Full changelog: v1.4.0...v1.5.0