2 # TopGit - A different patch queue manager
19 tgish_deps_only=true;;
21 echo "Usage: tg push [--dry-run] [--no-deps] [--tgish-only] [-r remote] branch*"
28 branches="$branches $arg";;
32 if [ -z "$remote" ]; then
36 if [ -z "$remote" ]; then
37 die "no remote location given. Either use -r remote argument or set topgit.remote"
40 if [ -z "$branches" ]; then
41 branches="$(git symbolic-ref HEAD | sed 's#^refs/heads/##')"
44 for name in $branches; do
45 ref_exists "$name" || die "detached HEAD? Can't push $name"
50 # if so desired omit non tgish deps
51 $tgish_deps_only && [ -z "$_dep_is_tgish" ] && return 0
54 [ -z "$_dep_is_tgish" ] ||
55 echo "top-bases/$_dep"
58 for name in $branches; do
61 if $recurse_deps; then
62 no_remotes=1 recurse_deps push_branch "$name"
69 echo "pushing:"; echo $list
70 git push $dry_run "$remote" $list