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 local base
="top-bases/$_dep"
55 if ref_exists
"$base"; then
56 echo "top-bases/$_dep"
58 echo "warning, no base found $base" 1>&2
62 for name
in $branches; do
65 if $recurse_deps; then
66 no_remotes=1 recurse_deps push_branch "$name"
73 echo "pushing:"; echo $list
74 git push
$dry_run "$remote" $list