mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-02 18:00:33 +08:00
bin(patch-review): Improve hunk list
This commit is contained in:
+7
-21
@@ -1194,9 +1194,7 @@ impl<'a> ToRow<3> for HunkItem<'a> {
|
||||
.concat();
|
||||
|
||||
[
|
||||
ui::span::hunk_state(state)
|
||||
.into_right_aligned_line()
|
||||
.into(),
|
||||
ui::span::hunk_state(state).into_right_aligned_line().into(),
|
||||
HunkItem::pretty_path(path, false).into(),
|
||||
Line::from(stats_cell).right_aligned().into(),
|
||||
]
|
||||
@@ -1221,9 +1219,7 @@ impl<'a> ToRow<3> for HunkItem<'a> {
|
||||
.concat();
|
||||
|
||||
[
|
||||
ui::span::hunk_state(state)
|
||||
.into_right_aligned_line()
|
||||
.into(),
|
||||
ui::span::hunk_state(state).into_right_aligned_line().into(),
|
||||
HunkItem::pretty_path(path, false).into(),
|
||||
Line::from(stats_cell).right_aligned().into(),
|
||||
]
|
||||
@@ -1247,9 +1243,7 @@ impl<'a> ToRow<3> for HunkItem<'a> {
|
||||
.concat();
|
||||
|
||||
[
|
||||
ui::span::hunk_state(state)
|
||||
.into_right_aligned_line()
|
||||
.into(),
|
||||
ui::span::hunk_state(state).into_right_aligned_line().into(),
|
||||
HunkItem::pretty_path(path, true).into(),
|
||||
Line::from(stats_cell).right_aligned().into(),
|
||||
]
|
||||
@@ -1263,9 +1257,7 @@ impl<'a> ToRow<3> for HunkItem<'a> {
|
||||
.concat();
|
||||
|
||||
[
|
||||
ui::span::hunk_state(state)
|
||||
.into_right_aligned_line()
|
||||
.into(),
|
||||
ui::span::hunk_state(state).into_right_aligned_line().into(),
|
||||
HunkItem::pretty_path(&copied.new_path, false).into(),
|
||||
Line::from(stats_cell).right_aligned().into(),
|
||||
]
|
||||
@@ -1279,9 +1271,7 @@ impl<'a> ToRow<3> for HunkItem<'a> {
|
||||
.concat();
|
||||
|
||||
[
|
||||
ui::span::hunk_state(state)
|
||||
.into_right_aligned_line()
|
||||
.into(),
|
||||
ui::span::hunk_state(state).into_right_aligned_line().into(),
|
||||
HunkItem::pretty_path(&moved.new_path, false).into(),
|
||||
Line::from(stats_cell).right_aligned().into(),
|
||||
]
|
||||
@@ -1297,9 +1287,7 @@ impl<'a> ToRow<3> for HunkItem<'a> {
|
||||
},
|
||||
state,
|
||||
) => [
|
||||
ui::span::hunk_state(state)
|
||||
.into_right_aligned_line()
|
||||
.into(),
|
||||
ui::span::hunk_state(state).into_right_aligned_line().into(),
|
||||
HunkItem::pretty_path(path, false).into(),
|
||||
span::default("EOF ")
|
||||
.light_blue()
|
||||
@@ -1316,9 +1304,7 @@ impl<'a> ToRow<3> for HunkItem<'a> {
|
||||
},
|
||||
state,
|
||||
) => [
|
||||
ui::span::hunk_state(state)
|
||||
.into_right_aligned_line()
|
||||
.into(),
|
||||
ui::span::hunk_state(state).into_right_aligned_line().into(),
|
||||
HunkItem::pretty_path(path, false).into(),
|
||||
span::default("FM ")
|
||||
.light_blue()
|
||||
|
||||
Reference in New Issue
Block a user