parameters: (name, working_dir=os.getcwd())
return_statement: return False
docstring: Return True if the supplied *name* matches the current git branch.
  
      If the current location is not a repository, False is returned.
docstring_summary: Return True if the supplied *name* matches the current git branch.
docstring_tokens: Return True if the supplied * name * matches the current git branch .
function: def git_is_branch(name, working_dir=os.getcwd()):
      """
      Return True if the supplied *name* matches the current git branch.
  
      If the current location is not a repository, False is returned.
      """
      if git_is_repo(working_dir):
          out = mooseutils.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD'], cwd=working_dir).strip()
          return out == name
      return False
function_tokens: def git_is_branch ( name , working_dir = os . getcwd ( ) ) : if git_is_repo ( working_dir ) : out = mooseutils . check_output ( [ 'git' , 'rev-parse' , '--abbrev-ref' , 'HEAD' ] , cwd = working_dir ) . strip ( ) return out == name return False