def rebase(cwd, rev='master', opts='', user=None, password=None, ignore_retcode=False):
 cwd = _expand_path(cwd, user)
 opts = _format_opts(opts)
 if any((x for x in opts if (x in ('-i', '--interactive')))):
  raise SaltInvocationError('Interactive rebases are not supported')
 command = ['git', 'rebase']
 command.extend(opts)
 if (not isinstance(rev, six.string_types)):
  rev = str(rev)
 command.extend(salt.utils.shlex_split(rev))
 return _git_run(command, cwd=cwd, user=user, password=password, ignore_retcode=ignore_retcode)['stdout']

def rebase ( cwd , rev = 'master' , opts = '' , user = None , password = None , ignore_retcode = False ) : cwd = _expand_path ( cwd , user ) opts = _format_opts ( opts ) if any ( ( x for x in opts if ( x in ( '-i' , '--interactive' ) ) ) ) : raise SaltInvocationError ( 'Interactive rebases are not supported' ) command = [ 'git' , 'rebase' ] command . extend ( opts ) if ( not isinstance ( rev , six . string_types ) ) : rev = str ( rev ) command . extend ( salt . utils . shlex_split ( rev ) ) return _git_run ( command , cwd = cwd , user = user , password = password , ignore_retcode = ignore_retcode ) [ 'stdout' ]
interface to git-rebase(1)_ cwd the path to the git checkout rev : master the revision to rebase onto the current branch opts any additional options to add to the command line .