mirror of
https://github.com/extrawurst/gitui.git
synced 2025-01-01 13:33:08 +03:00
rename
This commit is contained in:
parent
67f3a13716
commit
a8690e6e24
12
src/app.rs
12
src/app.rs
@ -5,10 +5,10 @@ use crate::{
|
||||
event_pump, BranchListComponent, CommandBlocking,
|
||||
CommandInfo, CommitComponent, Component,
|
||||
CreateBranchComponent, DrawableComponent,
|
||||
ExternalEditorComponent, FetchComponent, HelpComponent,
|
||||
InspectCommitComponent, MsgComponent, PushComponent,
|
||||
RenameBranchComponent, ResetComponent, StashMsgComponent,
|
||||
TagCommitComponent,
|
||||
ExternalEditorComponent, HelpComponent,
|
||||
InspectCommitComponent, MsgComponent, PullComponent,
|
||||
PushComponent, RenameBranchComponent, ResetComponent,
|
||||
StashMsgComponent, TagCommitComponent,
|
||||
},
|
||||
input::{Input, InputEvent, InputState},
|
||||
keys::{KeyConfig, SharedKeyConfig},
|
||||
@ -45,7 +45,7 @@ pub struct App {
|
||||
inspect_commit_popup: InspectCommitComponent,
|
||||
external_editor_popup: ExternalEditorComponent,
|
||||
push_popup: PushComponent,
|
||||
fetch_popup: FetchComponent,
|
||||
fetch_popup: PullComponent,
|
||||
tag_commit_popup: TagCommitComponent,
|
||||
create_branch_popup: CreateBranchComponent,
|
||||
rename_branch_popup: RenameBranchComponent,
|
||||
@ -111,7 +111,7 @@ impl App {
|
||||
theme.clone(),
|
||||
key_config.clone(),
|
||||
),
|
||||
fetch_popup: FetchComponent::new(
|
||||
fetch_popup: PullComponent::new(
|
||||
&queue,
|
||||
sender,
|
||||
theme.clone(),
|
||||
|
@ -33,7 +33,7 @@ use tui::{
|
||||
use super::PushComponent;
|
||||
|
||||
///
|
||||
pub struct FetchComponent {
|
||||
pub struct PullComponent {
|
||||
visible: bool,
|
||||
git_fetch: AsyncFetch,
|
||||
progress: Option<RemoteProgress>,
|
||||
@ -45,7 +45,7 @@ pub struct FetchComponent {
|
||||
input_cred: CredComponent,
|
||||
}
|
||||
|
||||
impl FetchComponent {
|
||||
impl PullComponent {
|
||||
///
|
||||
pub fn new(
|
||||
queue: &Queue,
|
||||
@ -156,7 +156,7 @@ impl FetchComponent {
|
||||
}
|
||||
}
|
||||
|
||||
impl DrawableComponent for FetchComponent {
|
||||
impl DrawableComponent for PullComponent {
|
||||
fn draw<B: Backend>(
|
||||
&self,
|
||||
f: &mut Frame<B>,
|
||||
@ -193,7 +193,7 @@ impl DrawableComponent for FetchComponent {
|
||||
}
|
||||
}
|
||||
|
||||
impl Component for FetchComponent {
|
||||
impl Component for PullComponent {
|
||||
fn commands(
|
||||
&self,
|
||||
out: &mut Vec<CommandInfo>,
|
||||
|
@ -30,7 +30,7 @@ pub use commitlist::CommitList;
|
||||
pub use create_branch::CreateBranchComponent;
|
||||
pub use diff::DiffComponent;
|
||||
pub use externaleditor::ExternalEditorComponent;
|
||||
pub use fetch::FetchComponent;
|
||||
pub use fetch::PullComponent;
|
||||
pub use filetree::FileTreeComponent;
|
||||
pub use help::HelpComponent;
|
||||
pub use inspect_commit::InspectCommitComponent;
|
||||
|
Loading…
Reference in New Issue
Block a user