Skip to content

Commit d1095c3

Browse files
author
Stephan Dilly
committed
Merge 'master' from [email protected]:extrawurst/gitui.git
2 parents 99f5305 + 36c124f commit d1095c3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/tabs/status.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ use tui::{
2727
widgets::Paragraph,
2828
};
2929

30-
///
30+
/// what part of the screen is focused
3131
#[derive(PartialEq)]
3232
enum Focus {
3333
WorkDir,
3434
Diff,
3535
Stage,
3636
}
3737

38-
///
38+
/// which target are we showing a diff against
3939
#[derive(PartialEq, Copy, Clone)]
4040
enum DiffTarget {
4141
Stage,
@@ -317,6 +317,9 @@ impl Status {
317317
match ev {
318318
AsyncNotification::Diff => self.update_diff()?,
319319
AsyncNotification::Status => self.update_status()?,
320+
AsyncNotification::Push
321+
| AsyncNotification::Fetch
322+
| AsyncNotification::CommitFiles => self.branch_compare(),
320323
_ => (),
321324
}
322325

0 commit comments

Comments
 (0)