# If there are no staged files, commit everything.
# Otherwise commit just what was staged
if git status --short | grep -q "^[AM]"; then
+ flag=""
+ else
flag="-a"
fi
git_user
git_commit $*
git_push
+ git fetch --all
fi
fi
else
commit "Updates $(basename `pwd`)"
fi
-
- git fetch --all
else
if [ ! -z "$1" ] && [ -d "$1" ]; then
- ( cd $1 &> /dev/null && commit "Updates $(basename $1)" && git fetch --all )
+ ( cd $1 &> /dev/null && commit "Updates $(basename $1)" )
else
mr commit -m "Updates"
mr fetch