Summary
Show ahead/behind commit counts vs the upstream branch in the Source Control view header (e.g. ↑3 ↓1 next to the project name).
Acceptance criteria
Files to touch
src/main/services/<repo-status-service>.ts (extend to compute ahead/behind via git rev-list --left-right --count <upstream>...HEAD)
src/preload/index.ts (add fields to RepoStatus)
src/renderer/src/components/git/GitSidePanelView.tsx (render pill)
How to test
- Set up a project where upstream has 1 extra commit and you have 2 local commits → expect
↑2 ↓1.
- A clean repo → no pill shown.
- A repo with no upstream → no pill, no error.
Effort: 4-6 hours.
Summary
Show ahead/behind commit counts vs the upstream branch in the Source Control view header (e.g.
↑3 ↓1next to the project name).Acceptance criteria
getRepoStatus()already includes the data needed (or extend it to do so) — seesrc/preload/index.tsRepoStatustype.↑N ↓Npill in theGitSidePanelViewheader next to the branch name when both are nonzero.Files to touch
src/main/services/<repo-status-service>.ts(extend to compute ahead/behind viagit rev-list --left-right --count <upstream>...HEAD)src/preload/index.ts(add fields toRepoStatus)src/renderer/src/components/git/GitSidePanelView.tsx(render pill)How to test
↑2 ↓1.Effort: 4-6 hours.