$bn add repository_name
$bn new repository_name file1 [file2 file3...]
$bn login repository_name
+ $bn exec repository_name command [arg1 arg2...]
COMMANDS
init
login repository_name
start a subshell in repository_name
+ exec repository_name command [arg1 arg2...]
+ execute a command in the context of repository_name, for example:
+ $bn exec myrepo git status
+ $bn exec myrepo git ls-files
+
EOF
exit 1
exit 1
fi
+ if ! which mr > /dev/null; then
+ echo '"mr" not found in the PATH'
+ exit 1
+ fi
+
echo -n "git server hostname? [git.vireo.org] "
read GIT_HOST
if [ -z "$GIT_HOST" ]; then
GIT_PS1_SHOWUNTRACKEDFILES= PSMOVEIN="movein:${1}" $SHELL -i || :
}
+execin() {
+ local REPO
+ if [ $# -lt 1 ]; then
+ usage
+ fi
+
+ REPO=$1;shift
+
+ export GIT_DIR="$LOCAL_REPOS/${REPO}.git"
+ export GIT_WORK_TREE="$GIT_DIR/$(git config --get core.worktree)"
+
+ "$@"
+}
+
add() {
if [ $# -ne 1 ]; then
usage
login)
login $@
;;
+ exec)
+ execin "$@"
+ ;;
ls)
list
;;