Hightor / gitinfo2

CTAN - gitinfo2.sty: Use git repository metadata in LaTeX documents
42 stars 9 forks source link

Show more than `(None)` is uncommitted changes #33

Open tdegeus opened 1 year ago

tdegeus commented 1 year ago

Thanks for this amazing package!

I would like to always to version information regardless if the commit is tagged, there have been committed changes since the last tag, there is no tag, or even if there are uncommitted changes.

In particular, I would (something) like to use what is proposed in setuptools_scm as follows:

  1. no distance and clean:
    {tag}
  2. distance and clean:
    {next_version}.dev{distance}+{scm letter}{revision hash}
  3. no distance and not clean:
    {tag}+dYYYYMMDD
  4. distance and not clean:
    {next_version}.dev{distance}+{scm letter}{revision hash}.dYYYYMMDD

    The next version is calculated by adding 1 to the last numeric component of the tag.

How can I do that?

josephwright commented 1 year ago

This repository is no longer active: please re-report issues at https://github.com/josephwright/gitinfo2/issues