git-annex/doc/todo/git_annex_grep.mdwn

20 lines
1 KiB
Text
Raw Normal View History

2015-06-04 12:27:20 +00:00
### Please describe the problem.
inability to quickly grep locally present files
### What steps will reproduce the problem?
run "git annex grep"
2015-06-11 19:17:45 +00:00
> i don't understand this request. just running `grep` will grep all the locally present files: sure there will be warnings, but you can use `2>/dev/null` to silence those. as for the suggested solution in comment, that greps for the filenames. please clarify the feature request here or this is [[invalid|done]]. --[[anarcat]]
2015-06-11 19:24:30 +00:00
>> The reason `git grep` exists is partly speed (git objects can
>> sometimes be read more efficiently than traversing the fileststem),
>> and partly the ability to grep a whole tree of source code, but
>> avoid grepping build artifacts, etc. The former reason doesn't apply
>> with git-annex. The latter reason applies somewhat, but it's much less
>> common to want to grep large binary files than it is to want to grep a
>> source tree. `git annex find` can be fed to `grep` when one wants to do
>> that. So I don't see a compelling case to add this to git-annex.
>> --[[Joey]]