Closed paskino closed 7 months ago
It also fails for me - git version 2.31.0.windows.1
I think this is because windows and linux treat quotes the opposite way.
Linux:
git config --global alias.changelog 'for-each-ref --sort=-*authordate --format="# %(contents:subject)%0a%(contents:body)" refs/tags'
Windows:
git config --global alias.changelog "for-each-ref --sort=-*authordate --format='# %(contents:subject)%0a%(contents:body)' refs/tags"
Hi, the windows command now doesn't fail for me. However, it only prints the change log that has been generated for the released versions. How do I see the change log for what has been committed to master since the last release?
How do I see the change log for what has been committed to master since the last release?
Changelogs must be manually created in annotated tags, so there is no such thing as "change log since the last (tagged) release".
If you're about to tag a new release and wondering what to write in the changelog (tag annotation), you could always check the commit messages since the last tag. On bash:
git log --pretty='format:%d%n%s%n%b%n' $(git tag --sort=v:refname | tail -n1)..HEAD
I suggest we reinstate the changelog file, so it's easier to see the changes since the last release. It is difficult for me to understand what has been done since last release, especially as there have been a few merges that weren't squashed. Also, as I am on windows I can't run the command you suggested.
maybe https://github.com/TomographicImaging/eqt/compare/v0.7.1...main?
Note that a changelog file kinda defeats the purpose of using Git.
After a meeting with @casperdcl @DanicaSTFC @paskino @lauramurgatroyd, we established that
@casperdcl do you think it would be possible to have the manual change log for next Thursday (7th Dec)? this would help our new release of EQT. Thanks!
https://github.com/TomographicImaging/eqt/blob/main/CONTRIBUTING.md#changelog describes a command which fails with my git version 2.39.1.windows.1 complaining as
Also, I had earlier created the changelog alias, which luckily works. In this case I cannot access the changelog from the latest tag, which is what we most often are interested in. How do we achieve it?
I tried with adding an annotated tag and then
git changelog
but it didn't contain any changelog information