From b3045b35bb430ec020165aa1a5fc79b55eed6a72 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Sun, 14 Jun 2020 23:37:46 +0200 Subject: [PATCH] rename --- src/app.rs | 2 +- src/components/diff.rs | 2 +- src/queue.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app.rs b/src/app.rs index 82cdbbf7..de933729 100644 --- a/src/app.rs +++ b/src/app.rs @@ -343,7 +343,7 @@ impl App { self.reset.open(action)?; flags.insert(NeedsUpdate::COMMANDS); } - InternalEvent::AddHunk(hash) => { + InternalEvent::StageHunk(hash) => { if let Some((path, is_stage)) = self.status_tab.selected_path() { diff --git a/src/components/diff.rs b/src/components/diff.rs index fc719689..de6fe656 100644 --- a/src/components/diff.rs +++ b/src/components/diff.rs @@ -278,7 +278,7 @@ impl DiffComponent { .as_ref() .expect("try using queue in immutable diff") .borrow_mut() - .push_back(InternalEvent::AddHunk(hash)); + .push_back(InternalEvent::StageHunk(hash)); } Ok(()) diff --git a/src/queue.rs b/src/queue.rs index 1b467da1..e760e6b6 100644 --- a/src/queue.rs +++ b/src/queue.rs @@ -37,7 +37,7 @@ pub enum InternalEvent { /// ConfirmedAction(Action), /// - AddHunk(u64), + StageHunk(u64), /// ShowErrorMsg(String), ///