doc/todo/detect_unregistered_repos_in_tree/comment_1_5ff421bafac1683b7e305b0b225786f6._comment
raw| 1 | [[!comment format=mdwn |
| 2 | username="anarcat" |
| 3 | avatar="http://cdn.libravatar.org/avatar/b486931ea9d27c0cc41a4e9e4daccb7c" |
| 4 | subject="find hack" |
| 5 | date="2018-04-29T17:39:42Z" |
| 6 | content=""" |
| 7 | I have just used this hack to workaround this issue: |
| 8 | |
| 9 | find -maxdepth 1 -type d -a -\( -execdir grep -q {} ~/.mrconfig \; -o -okdir mr register '{}' \; -\) |
| 10 | |
| 11 | What it does is look in the current directory, one level deep, for directories and check if they are in `~/.mrconfig`. If they aren't, ask if they should be registered. Obviously, this should check for stuff like if `.git` exists and so on, but considering the variety of repos supported by mr, i figured I would keep this simple. --[[anarcat]] |
| 12 | """]] |