From: aurtzy Date: Thu, 25 Apr 2024 17:35:49 +0000 (+0000) Subject: Added a comment X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~25^2~8^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6cc89d71d38071211990cd74fdbc46756f215454;p=git-annex.git Added a comment --- diff --git a/doc/forum/Cheapest_test_for_an_initialized_annex__63__/comment_1_abe1af7fc49f91e3aa15915190dc5dfd._comment b/doc/forum/Cheapest_test_for_an_initialized_annex__63__/comment_1_abe1af7fc49f91e3aa15915190dc5dfd._comment new file mode 100644 index 0000000000..688829b314 --- /dev/null +++ b/doc/forum/Cheapest_test_for_an_initialized_annex__63__/comment_1_abe1af7fc49f91e3aa15915190dc5dfd._comment @@ -0,0 +1,10 @@ +[[!comment format=mdwn + username="aurtzy" + avatar="http://cdn.libravatar.org/avatar/7d44f9b718a534ada04551ee8c72e07f" + subject="comment 1" + date="2024-04-25T17:35:49Z" + content=""" +`git config annex.uuid` seems reliable enough to me - the uuid is stored in `.git/config` and doesn't exist if it's not annex-inited (assuming no malicious behavior). + +If you're looking for the very cheapest, perhaps something like a file-exists check on `.git/annex` would work? I don't know if there are any edge cases with this one, though. +"""]]