Added a comment

This commit is contained in:
nobodyinperson 2022-12-22 11:39:41 +00:00 committed by admin
parent ac6ccb5137
commit 11873d00cd

View file

@ -0,0 +1,37 @@
[[!comment format=mdwn
username="nobodyinperson"
avatar="http://cdn.libravatar.org/avatar/736a41cd4988ede057bae805d000f4f5"
subject="comment 2"
date="2022-12-22T11:39:41Z"
content="""
Thanks joey! However I don't think it works quite now. Slightly modifying the script above I made a [testsuite](https://gitlab.com/-/snippets/2475815) and it seems metadata fields are still interpreted as numbers somehow:
```bash
# old version without lexicographical ordering
git annex version --raw
10.20221212-gab11fd70e
bash make-git-annex-dir-with-timestamps.sh %s %Y%m%d%H%M%S %Y.%m%d%H%M%S %Y:%m%d%H%M%S %Y-%m-%dT%H%:M:%S %Y-%m-%dT%H%:M:%S%z %FT%T %FT%T%z
%s ok
%Y%m%d%H%M%S ok
%Y.%m%d%H%M%S ok
%Y:%m%d%H%M%S fail
%Y-%m-%dT%H%:M:%S fail
%Y-%m-%dT%H%:M:%S%z fail
%FT%T fail
%FT%T%z fail
# new version apparently with lexicographical ordering but no change
git annex version --raw
10.20221213-gac6ccb513
bash make-git-annex-dir-with-timestamps.sh %s %Y%m%d%H%M%S %Y.%m%d%H%M%S %Y:%m%d%H%M%S %Y-%m-%dT%H%:M:%S %Y-%m-%dT%H%:M:%S%z %FT%T %FT%T%z
%s ok
%Y%m%d%H%M%S ok
%Y.%m%d%H%M%S ok
%Y:%m%d%H%M%S fail
%Y-%m-%dT%H%:M:%S fail
%Y-%m-%dT%H%:M:%S%z fail
%FT%T fail
%FT%T%z fail
```
"""]]