-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Support processing the commits starting from a specific tag #655
Comments
Thanks for opening your first issue at git-cliff! Be sure to follow the issue template! ⛰️ |
Hello! Have you tried the git e.g. git cliff v0.1.0..HEAD Or even more shorter: git cliff v2.2.1.. Other examples: git cliff 4c7b043..a440c6e
git cliff 4c7b043..HEAD
git cliff HEAD~2.. I think this is what you are looking for :) |
Ah, Thanks. I saw the range CLI argument in the docs, but there was no description or examples. I have tried it now, and it solves my problem, but you have to go one tag further back than expected, so you have to specify |
I think yes, since git ranges work like that. It is handled by the underlying git library ( I expanded the examples in d451252 |
@orhun, as far as I understand, git ranges will conflict with the --unreleased, --latest, etc. flags, so git ranges is not entirely suitable, since it will not allow flexible configuration It would be great if it was possible to specify the tag from which to start the story There is an initial_tag parameter in the configuration, maybe it’s worth using it? |
Yeah, using those flags will override the commit range. Can you give me an example case (i.e. git history) to make this matter more clear? I'm happy to implement it as long as we have the correct behavior with test fixtures in place.
|
Is there an existing issue or pull request for this?
Feature description
Currently, there's support for processing commits starting from the current or latest tag, or commits without any tag, but not starting from a specific tag. This would make the transition from unconventional commits to conventional commits much smoother. Then, you could keep the old changelog as, e.g.
HISTORY.md
, and then start a newCHANGELOG.md
based on commits after a specific tag.Desired solution
Introduce a new command-line argument that can be used to specify the tag that should be used to start fetching commits from.
Alternatives considered
Can't think of any.
Additional context
No response
The text was updated successfully, but these errors were encountered: