fix: disable blame and history popup for untracked files by kpbaks · Pull Request #2489 · gitui-org/gitui

extrawurst

An untracked file does not have any history data. Right now when
you press `B` for the blame popup or the `H` for the history popup
you get an empty popup where the title spins endlessly trying to find
the file in the commit history, and show relevant information.
This commit disables the two actions in the `StatusTreeComponent`, when the
selected item is a file which is not tracked by git.

@kpbaks

@kpbaks

@extrawurst

extrawurst

extrawurst

cruessler pushed a commit to cruessler/gitui that referenced this pull request

Oct 29, 2025
)

* fix: disable blame and history popup for untracked files

An untracked file does not have any history data. Right now when
you press `B` for the blame popup or the `H` for the history popup
you get an empty popup where the title spins endlessly trying to find
the file in the commit history, and show relevant information.
This commit disables the two actions in the `StatusTreeComponent`, when the
selected item is a file which is not tracked by git.

---------

Co-authored-by: extrawurst <mail@rusticorn.com>