-
-
Notifications
You must be signed in to change notification settings - Fork 650
fix: disable blame and history popup for untracked files #2489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: disable blame and history popup for untracked files #2489
Conversation
I have run make check
. The only error reported by clippy
is this.
image
Hope this is okay. I think it could be addressed in another PR to refactor the cognitive complexity of the event
function
I would add #[expect(clippy::cognitive_complexity)]
to the function. make check
should not fail. The refactor should be done in a future pr.
I have added #[expect(clippy::cognitive_complexity)]
to the function. Now make check
passes.
42254f7
to
97d5e5b
Compare
@kpbaks thanks for your contribution. please add a changelog entry and its good to go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add changelog entry matching other changelog entries style
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.
fcdba06
to
9b76e4c
Compare
Added entry to CHANGELOG.md
Uh oh!
There was an error while loading. Please reload this page.
An untracked file does not have any history data. Right now when you press
B
for the blame popup or theH
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 commitIt changes the following:
StatusTreeComponent
, when the selected item is a file which is not tracked by git.I followed the checklist:
make check
without errors