diff options
author | https://www.google.com/accounts/o8/id?id=AItOawlScsufvQF7s8TVTwPd-h_QiP5Hn_i-hrs <Jason@web> | 2014-07-17 15:29:59 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2014-07-17 15:29:59 +0000 |
commit | 2dddff5710a37ed1c28d4897e5ef236837a5ae8a (patch) | |
tree | 8ece7ddffae7b603bfe66376fd71cc52b3207f4d /doc | |
parent | 184d67967cd911b5c8fa7f5baebc535af11cb389 (diff) |
Diffstat (limited to 'doc')
-rw-r--r-- | doc/todo/wishlist:_--maxdepth_option_for_git_annex_find.mdwn | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/todo/wishlist:_--maxdepth_option_for_git_annex_find.mdwn b/doc/todo/wishlist:_--maxdepth_option_for_git_annex_find.mdwn new file mode 100644 index 000000000..f5a358aae --- /dev/null +++ b/doc/todo/wishlist:_--maxdepth_option_for_git_annex_find.mdwn @@ -0,0 +1,24 @@ +`git annex find` currently makes for a great way to find which files are already local, and don't need to get `git annex get` gotten; obviously `ls` just shows me all the files in a given directory, disregarding git-annex (and without recursing to subdirectories). I think that adding a '--maxdepth' option to `git annex find` would make it much easier to use at directories high up in the directory structure, since currently `git annex find` recurses all subdirectories necessarily, when I really just want to see whether or not there are git-annex files present from a given directory. + +Obviously, since directories themselves are not git-annex objects, there is no way to say whether or not they are "present", but perhaps the most intuitive would be to say whether or not any git-annex files under a given directory are present. + +For example, if I have: +``` +./ ++-- subdir0/ +| +-- file0 (present in local git-annex repo) +| +-- file1 (present in local git-annex repo) ++-- subdir1/ +| +-- file0 (not present in local git-annex repo) +| +-- file1 (not present in local git-annex repo) ++-- file2 (present in local git-annex repo) +``` + +and I type `git annex find --maxdepth 1 .`, the output might look something like: +subdir0/ +file2 + +rather than: +subdir0/file0 +subdir0/file1 +file2 |