todo/add --all (or alike) to find and findrefyohhttp://git-annex.branchable.com/todo/add_--all___40__or_alike__41___to_find_and_findref/git-annexikiwiki2022-12-20T19:44:15Zcomment 1http://git-annex.branchable.com/todo/add_--all___40__or_alike__41___to_find_and_findref/comment_1_8407146882e97ee8510f28df2ba5129c/joey2022-12-20T19:44:15Z2022-12-20T19:21:34Z
<p>Using --copies necessarily loads up the location tracking log for
each file, which does add overhead.</p>
<p>Any other matching option that matches everything will work just as well
for you. I think that <code>git-annex find --include='*'</code> is the best thing
currently available. Indeed, the git-annex-find man page suggests to use
that. The only overhead is an unncessary glob match, which
should be almost unmeasurable.</p>
<p>It does seem like it might be worth adding --anything that simply matches
anything. Preferred content expressions already support "anything". And
<code>git-annex find --anything</code> makes sense and is easier to type.</p>
<p>But, you'll probably be better off using <code>--include='*'</code> since it works
with older versions of git-annex.</p>
<p>(--all is the wrong name for such an option since it already has another
meaning, although I don't think it makes sense for <code>git-annex find</code> to
support --all, it has certianly been requested before by people who want to
generalize that existing meaning..)</p>