~sircmpwn/sr.ht-dev

git.sr.ht: Sort refs by commit date instead of tag date v1 APPLIED

Nolan Prescott: 1
 Sort refs by commit date instead of tag date

 1 files changed, 1 insertions(+), 1 deletions(-)
#330981 alpine.yml success
#330982 archlinux.yml success
#330983 debian.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/14592/mbox | git am -3
Learn more about email & git

[PATCH git.sr.ht] Sort refs by commit date instead of tag date Export this patch

Previously, git refs listed in reverse chronological order based on
tag-time.

Now, list in reverse chronological order based on commit-time of the
referenced commit.

Intended to address: https://todo.sr.ht/~sircmpwn/git.sr.ht/322

diff --git a/gitsrht/blueprints/repo.py b/gitsrht/blueprints/repo.py
--- a/gitsrht/blueprints/repo.py
+++ b/gitsrht/blueprints/repo.py
@@ -505,7 +505,7 @@
        def _tag_key(tag):
            if isinstance(tag[1], pygit2.Commit):
                return tag[1].commit_time
            return tag[1].tagger.time
            return tag[1].get_object().commit_time
        tags = sorted(tags, key=_tag_key, reverse=True)
        branches = [(
                branch,
git.sr.ht/patches: SUCCESS in 4m35s

[Sort refs by commit date instead of tag date][0] from [Nolan Prescott][1]

[0]: https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/14592
[1]: mailto:mail@nprescott.com

✓ #330983 SUCCESS git.sr.ht/patches/debian.yml    https://builds.sr.ht/~sircmpwn/job/330983
✓ #330982 SUCCESS git.sr.ht/patches/archlinux.yml https://builds.sr.ht/~sircmpwn/job/330982
✓ #330981 SUCCESS git.sr.ht/patches/alpine.yml    https://builds.sr.ht/~sircmpwn/job/330981
Thanks!

To git@git.sr.ht:~sircmpwn/git.sr.ht
   c08a9c7..b09557d  master -> master