Amitai Schleier
@schmonz@schmonz.com
When two ensembles are using mob.sh on the same repo, they’ll trample on each other’s work without meaning to. MOB_WIP_BRANCH_QUALIFIER looks like (if everyone sets it correctly) the two sessions will each have a distinct working branch.
For everyone to set it correctly every time, my best idea so far is for everyone’s .profile:
MOB_PROG=$(command -v mob)
mob() {
echo >&2 "nope, run mob1 or mob2"
}
mob1() {
MOB_WIP_BRANCH_QUALIFIER="mob1" ${MOB_PROG}
}
mob2() {
MOB_WIP_BRANCH_QUALIFIER="mob2" ${MOB_PROG}
}
Then nobody can run mob
, they have to run the one for the session they’re in (and we always know this). And nobody has to remember anything else.