public function stashBranchName()
    {
        $activeBranch = $this->getActiveBranchName('HEAD');

        if (null === $this->stashedBranch && 'HEAD' !== $activeBranch) {
            $this->stashedBranch = $activeBranch;
        }
    }
public function stashBranchName()
    {
        $activeBranch = $this->getActiveBranchName('HEAD');

        if (null === $this->stashedBranch && 'HEAD' !== $activeBranch) {
            $this->stashedBranch = $activeBranch;
        }
    }
public function stashBranchName ( ) { $ activeBranch = $ this -> getActiveBranchName ( 'HEAD' ) ; if ( null === $ this -> stashedBranch && 'HEAD' !== $ activeBranch ) { $ this -> stashedBranch = $ activeBranch ; } }
Stashes the active branch-name.

This will only stash the branch-name when no other branch was active
already.
Stashes the active branch - name .