author | Jordan Doyle <jordan@doyle.la> | 2022-07-18 0:30:57.0 +01:00:00 |
---|---|---|
committer | Jordan Doyle <jordan@doyle.la> | 2022-07-18 0:30:57.0 +01:00:00 |
commit | df5a39eb2b5bc297742b1ea0341e2e6f6f8fc6dd [patch] |
|
tree | 462abfdec4fd4728509dbfe036f0d4ad5d6f027a |
|
parent | 0280490417c99186885cd1d8b4c254ef58e1ebe3 |
|
download | df5a39eb2b5bc297742b1ea0341e2e6f6f8fc6dd.tar.gz |
Sort branches by last active & sort tags by creation
Diff
src/git.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/git.rs b/src/git.rs index 51b95ee..2c462c2 100644 --- a/src/git.rs +++ a/src/git.rs @@ -211,6 +211,13 @@ } } built_refs.branch.sort_unstable_by(|one, two| one.commit.committer.time.cmp(&two.commit.committer.time)); built_refs.tag.sort_unstable_by(|one, two| { let one_tagger = one.tagger.as_ref().map(|v| v.time); let two_tagger = two.tagger.as_ref().map(|v| v.time); one_tagger.cmp(&two_tagger) }); Arc::new(built_refs) }) .await