list-remote
show a list of remote repositories
+ locate pattern
+ locate which repositories contain files matching pattern
+
add repository_name
checkout one or more repositories from the remote host and add it to
mr's configuration
" </dev/null
}
+locate() {
+ local REPO
+ for REPO in $($0 list); do
+ (cd /; $0 exec "$REPO" git ls-files | sed -nr "/$1/{s/^/$REPO:/p}")
+ done
+}
+
new() {
if [ $# -lt 2 ]; then
usage
list-remote)
listremote
;;
+ locate)
+ locate "$@"
+ ;;
*)
usage
start a subshell in repository_name
.RE
+.B movein
+.IR locate
+pattern
+.RS 4
+search for files matching "pattern" (which is an extended regular expression
+passed to sed(1)) in all local repositories
+.RE
.B movein
.IR exec