Q on the cheapest test for an initialized annex
This commit is contained in:
parent
cafa9af811
commit
9c78ab198e
1 changed files with 11 additions and 0 deletions
11
doc/forum/Cheapest_test_for_an_initialized_annex__63__.mdwn
Normal file
11
doc/forum/Cheapest_test_for_an_initialized_annex__63__.mdwn
Normal file
|
@ -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!
|
Loading…
Add table
Reference in a new issue