summaryrefslogtreecommitdiffstats
path: root/src/tabs
diff options
context:
space:
mode:
authorAndrey Krupskiy <krupskiy.andrey@gmail.com>2023-02-04 07:00:19 +0100
committerGitHub <noreply@github.com>2023-02-04 07:00:19 +0100
commit57a5322fa76baf8c5bf66db533419b13297d0057 (patch)
tree834e1b72f6c8c5f8a9ba87140d67b7bb03bd349d /src/tabs
parent5411397f9a642e2268903e3a78a264f5c11afb80 (diff)
Checkout commit (#1499)
* Add keybind to checkout commit in log view * Extract commit checkout into method * add quckbar hint for checkout commit * add a smoke test * update changelog * show an error in popup --------- Co-authored-by: Omnikar <omnikar5@gmail.com> Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
Diffstat (limited to 'src/tabs')
-rw-r--r--src/tabs/revlog.rs7
-rw-r--r--src/tabs/stashlist.rs1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/tabs/revlog.rs b/src/tabs/revlog.rs
index fd124025..0b0ad7d4 100644
--- a/src/tabs/revlog.rs
+++ b/src/tabs/revlog.rs
@@ -62,6 +62,7 @@ impl Revlog {
key_config.clone(),
),
list: CommitList::new(
+ repo.clone(),
&strings::log_title(&key_config),
theme,
queue.clone(),
@@ -419,6 +420,12 @@ impl Component for Revlog {
));
out.push(CommandInfo::new(
+ strings::commands::log_checkout_commit(&self.key_config),
+ self.selected_commit().is_some(),
+ self.visible || force_all,
+ ));
+
+ out.push(CommandInfo::new(
strings::commands::open_tags_popup(&self.key_config),
true,
self.visible || force_all,
diff --git a/src/tabs/stashlist.rs b/src/tabs/stashlist.rs
index 89176e93..4a9e1449 100644
--- a/src/tabs/stashlist.rs
+++ b/src/tabs/stashlist.rs
@@ -32,6 +32,7 @@ impl StashList {
Self {
visible: false,
list: CommitList::new(
+ repo.clone(),
&strings::stashlist_title(&key_config),
theme,
queue.clone(),