1It would be use to add gbp (git buildpackage) support to myrepos. 2 3Here's the config I have created (I'm not sure where's best to post patches/PRs, so if someone can point me in the right direction I'll create one): 4 5 git_test = test -e "$MR_REPO/.git" && ! test -e "$MR_REPO/debian/gbp.conf" 6 gbp_test = test -e "$MR_REPO/.git" && test -e "$MR_REPO/debian/gbp.conf" 7 gbp_trusted_checkout = gbp clone $url 8 gbp_register = 9 url="`LC_ALL=C git config --get remote.origin.url`" || true 10 if [ -z "$url" ]; then 11 error "cannot determine gbp url" 12 fi 13 echo "Registering gbp url: $url in $MR_CONFIG" 14 mr -c "$MR_CONFIG" config "`pwd`" checkout="gbp clone '$url'" 15 gbp_update = gbp pull 16 # additional 17 gbp_buildpackage = gbp buildpackage "$@" 18 gbp_importorig = gbp import-orig "$@" 19 gbp_importdsc = gbp import-dsc "$@" 20 gbp_importdscs = gbp import-dscs "$@" 21 gbp_dch = gbp dch "$@" 22 gbp_pq = gbp pq "$@" 23 gbp_createremoterepo = gbp create-remote-repo "$@" 24 # same as git 25 gbp_fetch = git fetch --all --prune --tags "$@" 26 gbp_status = git status -s "$@" || true; git --no-pager log --branches --not --remotes --simplify-by-decoration --decorate --oneline || true; git --no-pager stash list 27 gbp_commit = git commit -a "$@" && git push --all 28 gbp_record = git commit -a "$@" 29 gbp_push = git push "$@" 30 gbp_diff = git diff "$@" 31 gbp_log = git log "$@" 32 gbp_grep = git grep "$@" 33 gbp_clean = 34 if [ "x$1" = x-f ] ; then 35 shift 36 git clean -dx --force "$@" 37 else 38 git clean -dx --dry-run "$@" 39 fi 40