git-cliff icon indicating copy to clipboard operation
git-cliff copied to clipboard

Allow disabling topological order for commits

Open orhun opened this issue 1 year ago • 1 comments

Is there an existing issue or pull request for this?

  • [X] I have searched the existing issues and pull requests

Feature description

See #800 for the problem description. To put it briefly, there might be edge cases where the changelog commits aren't ordered correctly when the merge commits are used.

Desired solution

Topological order was introduced as default behavior in #415. This behavior should be configurable (e.g. as date order) in the configuration file as follows:

# sort the commits topologically
topo_order_commits = false

We can also rename topo_order option to topo_order_tags for better alignment between these two options.

I'm not the best at naming. Maybe @Cyclonit have better ideas since he worked on #541

Alternatives considered

None.

Additional context

See #800

orhun avatar Aug 20 '24 18:08 orhun

This will probably fix #498 and #585

orhun avatar Sep 21 '24 15:09 orhun

I'm guessing this is the issue I'm having with decasify whereby if I regenerate the changelog it nukes any record of the v0.6.0 release from orbit and stuffs the only related commit (from a long running breaking change branch) into the v0.5.8 changelog where it does not belong.

alerque avatar Oct 21 '24 22:10 alerque

Yeah... It's not super ideal but we should turn my suggestion solution into reality for the next release.

orhun avatar Oct 29 '24 08:10 orhun

Is anyone work for this, may be i can try it?

lxb1226 avatar Nov 25 '24 13:11 lxb1226

Please go ahead @lxb1226 if you are still interested!

orhun avatar Dec 04 '24 17:12 orhun