Added a comment
authornobodyinperson <nobodyinperson@web>
Thu, 22 Dec 2022 11:39:41 +0000 (11:39 +0000)
committeradmin <admin@branchable.com>
Thu, 22 Dec 2022 11:39:41 +0000 (11:39 +0000)
doc/todo/--metadata_fieldname__62____61__VALUE_string_comparison/comment_2_38c46dee95ef2f246cd403717faaaa09._comment [new file with mode: 0644]

diff --git a/doc/todo/--metadata_fieldname__62____61__VALUE_string_comparison/comment_2_38c46dee95ef2f246cd403717faaaa09._comment b/doc/todo/--metadata_fieldname__62____61__VALUE_string_comparison/comment_2_38c46dee95ef2f246cd403717faaaa09._comment
new file mode 100644 (file)
index 0000000..9e80fe0
--- /dev/null
@@ -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
+
+```
+"""]]