nl_tokens: Create a commit builder from the changes on current branch
pl_tokens: function prepare ( repoState , opts ) { const workingState = repoState . getCurrentState ( ) ; const changes = workingState . getChanges ( ) ; // Is this an empty commit ? opts . empty = workingState . isClean ( ) ; // Parent SHA opts . parents = new Immutable . List ( [ workingState . getHead ( ) ] ) ; // Get merged tree (with applied changes) opts . treeEntries = WorkingUtils . getMergedTreeEntries ( workingState ) ; // Create map of blobs that needs to be created opts . blobs = changes . filter ( ( change ) => { return ! change . hasSha ( ) ; } ) . map ( ( change ) => { return change . getContent ( ) ; } ) ; return CommitBuilder . <mask> ( opts ) ; }