Greg Reagle wrote:
> To follow up on my suggestion to use a git commit as a version, the
> following command in fish automatically produces a version number:
> date --date (git log -1 --pretty=format:%aD) -u +%Y.%m.%d.%H.%M.%S
> 
> In bash, it would be:
> date --date "$(git log -1 --pretty=format:%aD)" -u +%Y.%m.%d.%H.%M.%S

Heyho Greg,

git timestamps are not guaranteed to be monotonic. Also there could be two
commits with the same timestamp.

--Markus

Reply via email to