Skip to content

Commit e116685

Browse files
author
Stephan Dilly
committed
rename
1 parent 8c16cca commit e116685

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Diff for: src/app.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ use crate::{
55
event_pump, BranchListComponent, CommandBlocking,
66
CommandInfo, CommitComponent, Component,
77
CreateBranchComponent, DrawableComponent,
8-
ExternalEditorComponent, FetchComponent, HelpComponent,
9-
InspectCommitComponent, MsgComponent, PushComponent,
10-
RenameBranchComponent, ResetComponent, StashMsgComponent,
11-
TagCommitComponent,
8+
ExternalEditorComponent, HelpComponent,
9+
InspectCommitComponent, MsgComponent, PullComponent,
10+
PushComponent, RenameBranchComponent, ResetComponent,
11+
StashMsgComponent, TagCommitComponent,
1212
},
1313
draw_popups,
1414
input::{Input, InputEvent, InputState},
@@ -47,7 +47,7 @@ pub struct App {
4747
inspect_commit_popup: InspectCommitComponent,
4848
external_editor_popup: ExternalEditorComponent,
4949
push_popup: PushComponent,
50-
fetch_popup: FetchComponent,
50+
fetch_popup: PullComponent,
5151
tag_commit_popup: TagCommitComponent,
5252
create_branch_popup: CreateBranchComponent,
5353
rename_branch_popup: RenameBranchComponent,
@@ -113,7 +113,7 @@ impl App {
113113
theme.clone(),
114114
key_config.clone(),
115115
),
116-
fetch_popup: FetchComponent::new(
116+
fetch_popup: PullComponent::new(
117117
&queue,
118118
sender,
119119
theme.clone(),

Diff for: src/components/fetch.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use tui::{
3333
use super::PushComponent;
3434

3535
///
36-
pub struct FetchComponent {
36+
pub struct PullComponent {
3737
visible: bool,
3838
git_fetch: AsyncFetch,
3939
progress: Option<RemoteProgress>,
@@ -45,7 +45,7 @@ pub struct FetchComponent {
4545
input_cred: CredComponent,
4646
}
4747

48-
impl FetchComponent {
48+
impl PullComponent {
4949
///
5050
pub fn new(
5151
queue: &Queue,
@@ -156,7 +156,7 @@ impl FetchComponent {
156156
}
157157
}
158158

159-
impl DrawableComponent for FetchComponent {
159+
impl DrawableComponent for PullComponent {
160160
fn draw<B: Backend>(
161161
&self,
162162
f: &mut Frame<B>,
@@ -193,7 +193,7 @@ impl DrawableComponent for FetchComponent {
193193
}
194194
}
195195

196-
impl Component for FetchComponent {
196+
impl Component for PullComponent {
197197
fn commands(
198198
&self,
199199
out: &mut Vec<CommandInfo>,

Diff for: src/components/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub use commitlist::CommitList;
3030
pub use create_branch::CreateBranchComponent;
3131
pub use diff::DiffComponent;
3232
pub use externaleditor::ExternalEditorComponent;
33-
pub use fetch::FetchComponent;
33+
pub use fetch::PullComponent;
3434
pub use filetree::FileTreeComponent;
3535
pub use help::HelpComponent;
3636
pub use inspect_commit::InspectCommitComponent;

0 commit comments

Comments
 (0)