Q on the cheapest test for an initialized annex
authormih <mih@web>
Thu, 25 Apr 2024 15:15:24 +0000 (15:15 +0000)
committeradmin <admin@branchable.com>
Thu, 25 Apr 2024 15:15:24 +0000 (15:15 +0000)
doc/forum/Cheapest_test_for_an_initialized_annex__63__.mdwn [new file with mode: 0644]

diff --git a/doc/forum/Cheapest_test_for_an_initialized_annex__63__.mdwn b/doc/forum/Cheapest_test_for_an_initialized_annex__63__.mdwn
new file mode 100644 (file)
index 0000000..86cfef9
--- /dev/null
@@ -0,0 +1,11 @@
+I need to implement some functionality that should work in similar ways when faced with a plain Git vs a git-annex repo. In this context I am looking for the cheapest of the appropriate tests for an initialized annex?
+
+I have looked at
+
+- `git config annex.uuid` (~3ms)
+- `git rev-parse git-annex` (~3ms)
+- `git annex info --fast -q` (~50ms)
+
+Are  the fast ones sufficient to guarantee that no subsequent call to a git-annex command would yield `git-annex: First run: git-annex init`?
+
+Thanks!