From: nobodyinperson Date: Fri, 23 Dec 2022 10:05:27 +0000 (+0000) Subject: Added a comment X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~60^2~100 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=82ae848dd08b92d787aa669dc2c32c18b04e3d64;p=git-annex.git Added a comment --- diff --git a/doc/todo/--metadata_fieldname__62____61__VALUE_string_comparison/comment_5_afba02fb24eddc6569dce63ffe606dcf._comment b/doc/todo/--metadata_fieldname__62____61__VALUE_string_comparison/comment_5_afba02fb24eddc6569dce63ffe606dcf._comment new file mode 100644 index 0000000000..ffa3fb6893 --- /dev/null +++ b/doc/todo/--metadata_fieldname__62____61__VALUE_string_comparison/comment_5_afba02fb24eddc6569dce63ffe606dcf._comment @@ -0,0 +1,16 @@ +[[!comment format=mdwn + username="nobodyinperson" + avatar="http://cdn.libravatar.org/avatar/736a41cd4988ede057bae805d000f4f5" + subject="comment 5" + date="2022-12-23T10:05:26Z" + content=""" +A very nice benefit of this feature is that we can now `git annex find` files depending on when their metadata was changed: + +```sh +# annexed files which have recently had their metadata changed +git annex find --metadata \"lastchanged>=$(date -d'2 days ago' +%Y-%m-%d@%H-%M-%S)\" + +# annexed files which have their tag changed in a specific week +git annex find --metadata \"tag-lastchanged>=2022-12-18\" --and --metadata \"tag-lastchanged<=2022-12-25\" +``` +"""]]