nl_tokens: Change current branch in the repository ( sync ) . Requires to have fetched the branch .
pl_tokens: function checkout ( repoState , branch ) { let _branch = branch ; if ( ! ( branch instanceof Branch ) ) { _branch = repoState . getBranch ( branch ) ; if ( branch === null ) { throw Error ( 'Unknown branch ' + branch ) ; } } if ( ! repoState . isFetched ( _branch ) ) { throw <mask> ( 'Tree for branch ' + _branch . getFullName ( ) + ' must be fetched first' ) ; } return repoState . set ( 'currentBranchName' , _branch . getFullName ( ) ) ; }