Skip to content

feat: live-update git branch in TUI footers - #4129

Merged
rumpl merged 1 commit into
docker:mainfrom
rumpl:feat/lean-tui-live-git-branch
Sep 3, 2026
Merged

feat: live-update git branch in TUI footers#4129
rumpl merged 1 commit into
docker:mainfrom
rumpl:feat/lean-tui-live-git-branch

Conversation

@rumpl

@rumpl rumpl commented Sep 2, 2026

Copy link
Copy Markdown
Member

Summary

  • add a shared event-driven Git branch watcher using fsnotify
  • update the lean TUI footer when HEAD changes
  • reuse the watcher in the full TUI sidebar
  • support repositories and linked worktrees without polling

Testing

  • task build
  • task lint
  • go test ./pkg/gitbranch ./pkg/leantui/... ./pkg/tui/components/sidebar

Notes

  • The full task test run has an environment-dependent failure in pkg/sandbox (TestExtraWorkspace/built-in_name resolves the main worktree examples path). All other packages passed.

@rumpl
rumpl requested a review from a team as a code owner September 2, 2026 22:42
@rumpl
rumpl enabled auto-merge September 2, 2026 22:42
@aheritier aheritier added area/tui For features/issues/fixes related to the TUI kind/feat PR adds a new feature (maps to feat:). Use on PRs only. labels Sep 2, 2026
@rumpl
rumpl force-pushed the feat/lean-tui-live-git-branch branch from fc29ba3 to b80d162 Compare September 3, 2026 08:12
aheritier
aheritier previously approved these changes Sep 3, 2026
@rumpl
rumpl force-pushed the feat/lean-tui-live-git-branch branch from b80d162 to 3dd4baa Compare September 3, 2026 08:26
@rumpl
rumpl force-pushed the feat/lean-tui-live-git-branch branch 2 times, most recently from 7b9d4f1 to 79b0779 Compare September 3, 2026 08:40
trungutt
trungutt previously approved these changes Sep 3, 2026
@rumpl
rumpl force-pushed the feat/lean-tui-live-git-branch branch from 79b0779 to 0170fb0 Compare September 3, 2026 09:34
@rumpl
rumpl force-pushed the feat/lean-tui-live-git-branch branch from 0170fb0 to efb697a Compare September 3, 2026 13:03
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
@rumpl
rumpl force-pushed the feat/lean-tui-live-git-branch branch from efb697a to f172663 Compare September 3, 2026 13:19
@rumpl
rumpl merged commit 30f3103 into docker:main Sep 3, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tui For features/issues/fixes related to the TUI kind/feat PR adds a new feature (maps to feat:). Use on PRs only.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants