[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Git tag date incorrect (in 1970)
From: |
Thomas Schmitt |
Subject: |
Re: Git tag date incorrect (in 1970) |
Date: |
Thu, 28 Nov 2024 15:14:31 +0100 |
Hi,
(please keep the discussion on bug-xorriso@gnu.org)
Disclaimer: I'm not the right person to ask about git problems.
Sid T wrote:
> alias git--tag-sortdate='git for-each-ref --sort=taggerdate --format
> '\''%(tag)_,,,_%(taggerdate:raw)_,,,_%(taggername)_,,,_%(subject)'\''
> refs/tags \
> | awk '\''BEGIN { FS = "_,,,_" } ; { t=strftime("%Y-%m-%d %H:%M",$2);
> printf "%-20s %-18s %-25s %s\n", t, $1, $4, $3 }'\'''
That's an impressive pipe.
> When using '--sort=creatordate', things kind of work but tag names are
> missing, as shown below.
> alias git--tag-sortdate-creator='git for-each-ref --sort=creatordate
> --format
> '\''%(tag)_,,,_%(creatordate:raw)_,,,_%(taggername)_,,,_%(subject)'\''
> refs/tags \
> | awk '\''BEGIN { FS = "_,,,_" } ; { t=strftime("%Y-%m-%d %H:%M",$2);
> ...
> printf "%-20s %-18s %-25s %s\n", t, $1, $4, $3 }'\'''
Maybe there is a "creatorname" equivalent to "taggername" (which i cannot
find in man git-for-each-ref).
> 2016-09-16 20:20 1.4.6 libburn release 1.4.6 is ready
> Thomas Schmitt
> 2017-09-12 12:39 Updated change log
In the time between these two tags, libburnia migrated from SVN to git.
The first direct commit to libburn's git happened in november 2016
with xorriso timestamp 2016.11.18.131813 and git commit id 80175e0.
(Says my manually maintained repo-independent list of program changes.)
It's the former SVN tags which do what you expect and the native git tags
which don't. I created the native tags by
git tag "$tag_name"
git push --tags
> https://stackoverflow.com/questions/67206124/what-is-the-difference-between-taggerdate-and-creatordate-for-git-tags
It seems my tags are "lightweight tags".
Have a nice day :)
Thomas