def remote_args(remote, local_branch=u'', remote_branch=u'', ff_only=False, force=False, no_ff=False, tags=False, rebase=False, pull=False, push=False, set_upstream=False):
 args = [remote]
 what = refspec_arg(local_branch, remote_branch, pull, push)
 if what:
  args.append(what)
 kwargs = {u'verbose': True}
 if pull:
  if rebase:
   kwargs[u'rebase'] = True
  elif ff_only:
   kwargs[u'ff_only'] = True
  elif no_ff:
   kwargs[u'no_ff'] = True
 elif force:
  kwargs[u'force'] = True
 if (push and set_upstream):
  kwargs[u'set_upstream'] = True
 if tags:
  kwargs[u'tags'] = True
 return (args, kwargs)

def remote_args ( remote , local_branch = u'' , remote_branch = u'' , ff_only = False , force = False , no_ff = False , tags = False , rebase = False , pull = False , push = False , set_upstream = False ) : args = [ remote ] what = refspec_arg ( local_branch , remote_branch , pull , push ) if what : args . append ( what ) kwargs = { u'verbose' : True } if pull : if rebase : kwargs [ u'rebase' ] = True elif ff_only : kwargs [ u'ff_only' ] = True elif no_ff : kwargs [ u'no_ff' ] = True elif force : kwargs [ u'force' ] = True if ( push and set_upstream ) : kwargs [ u'set_upstream' ] = True if tags : kwargs [ u'tags' ] = True return ( args , kwargs )
return arguments for git fetch/push/pull .