gitui/src
Kristoffer Plagborg Bak Sørensen 2ced3f9acc
fix: disable blame and history popup for untracked files (#2489)
* 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>
2025-10-28 22:41:36 +01:00
..
components fix: disable blame and history popup for untracked files (#2489) 2025-10-28 22:41:36 +01:00
keys cleanup some expects (#2754) 2025-10-28 22:40:44 +01:00
popups cleanup some expects (#2754) 2025-10-28 22:40:44 +01:00
tabs Fix all mismatched_lifetime_syntaxes warnings (#2727) 2025-10-28 16:34:42 +01:00
ui cleanup some expects (#2754) 2025-10-28 22:40:44 +01:00
app.rs fix latest clippy (#2597) 2025-04-07 16:06:00 +02:00
args.rs refactor(args.rs): make the flags id slices and the default values as a const (#2733) 2025-10-28 18:03:48 +01:00
bug_report.rs cargo fmt: use hardtabs 2021-08-17 14:24:25 +02:00
clipboard.rs Fix typos (#2740) 2025-10-28 16:35:05 +01:00
cmdbar.rs fix: When the terminal is insufficient to display all the commands, the cmdbar_bg configuration color does not fully take effect (#2348) 2025-10-28 18:42:54 +01:00
input.rs Fix typos (#2740) 2025-10-28 16:35:05 +01:00
main.rs Fix all mismatched_lifetime_syntaxes warnings (#2727) 2025-10-28 16:34:42 +01:00
notify_mutex.rs Fix typos (#2740) 2025-10-28 16:35:05 +01:00
options.rs Address clippy issues on nightly (#2707) 2025-09-08 10:31:11 +02:00
popup_stack.rs generic popup stacking solution (#1124) 2022-02-06 22:13:05 +01:00
queue.rs Disable dotted range commit yanking (#2577) 2025-04-04 15:27:50 +02:00
spinner.rs ratatui 0.24 update 2024-02-20 15:41:31 +01:00
string_utils.rs Allow to scroll diffs horizontally (#1327) 2023-01-08 12:47:37 +01:00
strings.rs Fix all mismatched_lifetime_syntaxes warnings (#2727) 2025-10-28 16:34:42 +01:00
watcher.rs cargo updates (#1856) 2024-02-12 11:53:22 +01:00