You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following flags are not producing the expected output when there are pre-release tags with same date.
--unreleased
--latest
--current
I think this issue has a low priority, because this issue is an edge case.
This is because it is rare to encounter a situation where the date and time of the tag are the same.
Initialized empty Git repository in /tmp/cliff/option_test/.git/
[main (root-commit) f296b1e] chore: v1.0.0
[main 7d62cf8] chore: v1.1.0-rc.1
[main adc2ee1] chore: v1.1.0-rc.2
[main 5224e82] chore: v1.1.0
=====================================
git log --oneline
=====================================
5224e82 (HEAD -> main, tag: v1.1.0) chore: v1.1.0
adc2ee1 (tag: v1.1.0-rc.2) chore: v1.1.0-rc.2
7d62cf8 (tag: v1.1.0-rc.1) chore: v1.1.0-rc.1
f296b1e (tag: v1.0.0) chore: v1.0.0
=====================================
git tag --sort=-taggerdate
=====================================
v1.0.0
v1.1.0
v1.1.0-rc.1
v1.1.0-rc.2
=====================================
git-cliff version
=====================================
git-cliff 1.1.1
INFO git_cliff > Saving the configuration file to "cliff.toml"
=====================================
git-cliff
=====================================
# Changelog
All notable changes to this project will be documented in this file.
## [1.1.0] - 2023-01-20
### Miscellaneous Tasks
- V1.1.0
## [1.1.0-rc.2] - 2023-01-20
### Miscellaneous Tasks
- V1.1.0-rc.2
## [1.1.0-rc.1] - 2023-01-20
### Miscellaneous Tasks
- V1.1.0-rc.1
## [1.0.0] - 2023-01-20
### Miscellaneous Tasks
- V1.0.0
<!-- generated by git-cliff -->
=====================================
git-cliff --unreleased
=====================================
# Changelog
All notable changes to this project will be documented in this file.
## [1.1.0] - 2023-01-20
### Miscellaneous Tasks
- V1.1.0
<!-- generated by git-cliff -->
=====================================
git-cliff --latest
=====================================
# Changelog
All notable changes to this project will be documented in this file.
## [1.1.0-rc.2] - 2023-01-20
### Miscellaneous Tasks
- V1.1.0-rc.2
<!-- generated by git-cliff -->
=====================================
git-cliff --current
=====================================
# Changelog
All notable changes to this project will be documented in this file.
## [1.1.0] - 2023-01-20
### Miscellaneous Tasks
- V1.1.0
## [1.1.0-rc.2] - 2023-01-20
### Miscellaneous Tasks
- V1.1.0-rc.2
## [1.1.0-rc.1] - 2023-01-20
### Miscellaneous Tasks
- V1.1.0-rc.1
<!-- generated by git-cliff -->
Unreleased
git-cliff --unreleased
# Changelog
All notable changes to this project will be documented in this file.
## [1.1.0] - 2023-01-20
### Miscellaneous Tasks
- V1.1.0
<!-- generated by git-cliff -->
Latest
git-cliff --latest
# Changelog
All notable changes to this project will be documented in this file.
## [1.1.0-rc.2] - 2023-01-20
### Miscellaneous Tasks
- V1.1.0-rc.2
<!-- generated by git-cliff -->
Current
git-cliff --current
# Changelog
All notable changes to this project will be documented in this file.
## [1.1.0] - 2023-01-20
### Miscellaneous Tasks
- V1.1.0
## [1.1.0-rc.2] - 2023-01-20
### Miscellaneous Tasks
- V1.1.0-rc.2
## [1.1.0-rc.1] - 2023-01-20
### Miscellaneous Tasks
- V1.1.0-rc.1
<!-- generated by git-cliff -->
Expected behavior
Unreleased
git-cliff --unreleased
# Changelog
All notable changes to this project will be documented in this file.
<!-- generated by git-cliff -->
Latest
git-cliff --latest
# Changelog
All notable changes to this project will be documented in this file.
## [1.1.0] - 2023-01-20
### Miscellaneous Tasks
- V1.1.0
<!-- generated by git-cliff -->
Current
git-cliff --current
# Changelog
All notable changes to this project will be documented in this file.
## [1.1.0] - 2023-01-20
### Miscellaneous Tasks
- V1.1.0
<!-- generated by git-cliff -->
System (please complete the following information):
hituzi-no-sippo
changed the title
Doesn't expected output when Pre-release tags with same datetime.
Doesn't expected output when pre-release tags with same datetime
Jan 20, 2023
Describe the bug
The following flags are not producing the expected output when there are pre-release tags with same date.
--unreleased
--latest
--current
I think this issue has a low priority, because this issue is an edge case.
This is because it is rare to encounter a situation where the date and time of the tag are the same.
To Reproduce
I've created a test script.
test script
output
Unreleased
git-cliff --unreleased
Latest
git-cliff --latest
Current
git-cliff --current
Expected behavior
Unreleased
git-cliff --unreleased
Latest
git-cliff --latest
Current
git-cliff --current
System (please complete the following information):
Additional context
Thank you.
The text was updated successfully, but these errors were encountered: