third_party/blink/tools/blinkpy/common/checkout/git.py
def current_branch(self):
        """Returns the name of the current branch, or empty string if HEAD is detached."""
        ref = self.run(['rev-parse', '--symbolic-full-name', 'HEAD']).strip()
        if ref == 'HEAD':
            # HEAD is detached; return an empty string.
            return ''
        return self._branch_from_ref(ref)
Returns the name of the current branch, or empty string if HEAD is detached.
Returns the name of the current branch, or empty string if HEAD is detached.
Returns the name of the current branch or empty string if HEAD is detached .
def current_branch(self):
        ref = self.run(['rev-parse', '--symbolic-full-name', 'HEAD']).strip()
        if ref == 'HEAD':
            return ''
        return self._branch_from_ref(ref)
def current_branch ( self ) : ref = self . run ( [ 'rev-parse' , '--symbolic-full-name' , 'HEAD' ] ) . strip ( ) if ref == 'HEAD' : return '' return self . _branch_from_ref ( ref )
Returns the name of the current branch, or empty string if HEAD is detached.
Returns the name of the current branch or empty string if HEAD is detached .
"""Returns the name of the current branch, or empty string if HEAD is detached.""" # HEAD is detached; return an empty string.
self