rpm-ostree/docs/manual
rfairley a20d10e3d5 libpriv/util: Add date field in auto-versioning
This adds an optional date field to the prefix
passed by automatic_version_prefix. An example of specifying
the field is as follows:

10.<date:%Y>

And the fields progress like:

10.2018.0
10.2018.1
10.2018.2
10.2019.0

The date format creates a new "current date" string using
valid date directives passed into g_date_time_format().

If there is a problem reading the given date format,
an error is given and the next version is returned as NULL.

If no <date:...> tag is detected in the auto version prefix,
the same behavior as before (appending .1 and incrementing) occurs.

This may be helpful to avoid writing glue code to auto-update
the version if a date string in the commit version is desired.
Otherwise, --add-metadata-string=version= is an alternative for
complete customization.

Fixes: #1712

Closes: #1721
Approved by: jlebon
2019-01-14 18:49:41 +00:00
..
administrator-handbook.md Explain how to remove packages from the base layer 2018-07-03 21:14:28 +00:00
background.md docs: A few random tweaks; link to ostree and issues 2016-05-06 13:55:30 +00:00
compose-server.md Fix the link to Fedora Atomic json file 2018-06-22 14:13:06 +00:00
treefile.md libpriv/util: Add date field in auto-versioning 2019-01-14 18:49:41 +00:00