Compare commits
2 commits
22ce2d431a
...
c1564807f8
Author | SHA1 | Date | |
---|---|---|---|
c1564807f8 | |||
b24005c3fe |
2 changed files with 3 additions and 21 deletions
|
@ -1,14 +1,11 @@
|
||||||
use color_eyre::owo_colors::OwoColorize;
|
|
||||||
//
|
//
|
||||||
use git_next_core::git::graph::Log;
|
use git_next_core::git::graph::Log;
|
||||||
use lazy_static::lazy_static;
|
|
||||||
use ratatui::{
|
use ratatui::{
|
||||||
style::{Color, Style, Styled as _},
|
style::{Color, Style},
|
||||||
text::{Line, Span, Text},
|
text::{Line, Span, Text},
|
||||||
widgets::{Paragraph, Widget},
|
widgets::{Paragraph, Widget},
|
||||||
};
|
};
|
||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
use tracing::info;
|
|
||||||
|
|
||||||
use super::HeightContraintLength;
|
use super::HeightContraintLength;
|
||||||
|
|
||||||
|
|
|
@ -52,24 +52,13 @@ impl<'a> RepoWidget<'a> {
|
||||||
alert,
|
alert,
|
||||||
branches,
|
branches,
|
||||||
log,
|
log,
|
||||||
} => InnerRepoWidget {
|
}
|
||||||
repo_alias,
|
| RepoState::Ready {
|
||||||
message,
|
|
||||||
alert: alert.as_ref().map(String::as_str),
|
|
||||||
branches: Some(branches),
|
|
||||||
log: Some(log),
|
|
||||||
},
|
|
||||||
|
|
||||||
RepoState::Ready {
|
|
||||||
repo_alias,
|
repo_alias,
|
||||||
message,
|
message,
|
||||||
alert,
|
alert,
|
||||||
branches,
|
branches,
|
||||||
log,
|
log,
|
||||||
// view_state,
|
|
||||||
// main,
|
|
||||||
// next,
|
|
||||||
// dev,
|
|
||||||
..
|
..
|
||||||
} => InnerRepoWidget {
|
} => InnerRepoWidget {
|
||||||
repo_alias,
|
repo_alias,
|
||||||
|
@ -77,10 +66,6 @@ impl<'a> RepoWidget<'a> {
|
||||||
alert: alert.as_ref().map(String::as_str),
|
alert: alert.as_ref().map(String::as_str),
|
||||||
branches: Some(branches),
|
branches: Some(branches),
|
||||||
log: Some(log),
|
log: Some(log),
|
||||||
// view_state,
|
|
||||||
// main,
|
|
||||||
// next,
|
|
||||||
// dev,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue