def symbolic_ref(cwd, ref, value=None, opts='', user=None, password=None, ignore_retcode=False):
 cwd = _expand_path(cwd, user)
 command = ['git', 'symbolic-ref']
 opts = _format_opts(opts)
 if ((value is not None) and any(((x in opts) for x in ('-d', '--delete')))):
  raise SaltInvocationError('Value cannot be set for symbolic ref if -d/--delete is included in opts')
 command.extend(opts)
 command.append(ref)
 if value:
  command.extend(value)
 return _git_run(command, cwd=cwd, user=user, password=password, ignore_retcode=ignore_retcode)['stdout']

def symbolic_ref ( cwd , ref , value = None , opts = '' , user = None , password = None , ignore_retcode = False ) : cwd = _expand_path ( cwd , user ) command = [ 'git' , 'symbolic-ref' ] opts = _format_opts ( opts ) if ( ( value is not None ) and any ( ( ( x in opts ) for x in ( '-d' , '--delete' ) ) ) ) : raise SaltInvocationError ( 'Value cannot be set for symbolic ref if -d/--delete is included in opts' ) command . extend ( opts ) command . append ( ref ) if value : command . extend ( value ) return _git_run ( command , cwd = cwd , user = user , password = password , ignore_retcode = ignore_retcode ) [ 'stdout' ]
set git symbolic ref into head .