]> git.madduck.net Git - etc/myrepos.git/blob - .mr/LIB

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

add caff role
[etc/myrepos.git] / .mr / LIB
1 bzr_update = bzr pull "$@"
2
3 lib =    checkout_hack_branch() {
4            git clone --no-checkout --origin $2 $3 $1
5            cd $1
6            git checkout -b $2 $2/${5:-master}
7            git branch -D master >/dev/null
8            git remote add origin $4
9            if git fetch origin 2>/dev/null; then
10              git checkout -b master origin/master
11            else
12              git checkout -b master $2/${5:-master}
13              case "$4" in
14                ssh://*)
15                  host=${4#*//}
16                  path=${host#*/}
17                  host=${host%%/*}
18                  ssh $host "[ -d $path ] || GIT_DIR=$path git --bare init --shared=world"
19                  ;;
20              esac
21              git push origin --all
22            fi
23          }