mirror of
https://github.com/extrawurst/gitui.git
synced 2024-12-28 03:22:51 +03:00
fix order of old/new in compare
This commit is contained in:
parent
5672cfd033
commit
3db3b95dd0
@ -52,7 +52,15 @@ impl CompareDetailsComponent {
|
||||
let c1 = sync::get_commit_details(CWD, ids.0).ok();
|
||||
let c2 = sync::get_commit_details(CWD, ids.1).ok();
|
||||
|
||||
c1.and_then(|c1| c2.map(|c2| (c1, c2)))
|
||||
c1.and_then(|c1| {
|
||||
c2.map(|c2| {
|
||||
if c1.author.time < c2.author.time {
|
||||
(c1, c2)
|
||||
} else {
|
||||
(c2, c1)
|
||||
}
|
||||
})
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user