Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option to sort by commit date #197

Closed
anatawa12 opened this issue Feb 28, 2021 · 5 comments
Closed

add option to sort by commit date #197

anatawa12 opened this issue Feb 28, 2021 · 5 comments

Comments

@anatawa12
Copy link

Currently, versions are sorted by semver or string comparison but I want to sort by commit date.

We can get sorted tag list by git tag -l --sort=-committerdate.

@cookpete
Copy link
Owner

I'm trying to think of a reason as to why you would ever want to sort your releases by committerdate?

@ljharb
Copy link
Contributor

ljharb commented May 23, 2021

To show backports. I often release v2, and then later backport a v1.x patch.

@cookpete
Copy link
Owner

Ah, true, but then creatordate (the date it was tagged) would work fine for that too?

@anatawa12
Copy link
Author

I'm trying to think of a reason as to why you would ever want to sort your releases by committerdate?

In my project, To show both snapshots and releases.

Ah, true, but then creatordate (the date it was tagged) would work fine for that too?

I didn't know creatordate but I think that also work fine.

@anatawa12
Copy link
Author

I think an option to sort by git --sort option is good to support wide-range of usages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants