import { IGitCommitCommandHandler } from '../../commandHandlers/types' ; import { CommitDetails } from '../../common/types' ; import { BaseCommitCommand } from '../baseCommitCommand' ; export class CreateBranchCommand extends BaseCommitCommand { constructor ( commit , private handler ) { super ( commit ) ; this . setTitle ( '$(git-branch) Branch from here' ) ; this . setCommand ( 'git.commit.createBranch' ) ; this . setCommandArguments ( [ commit ] ) ; } public execute ( ) { this . handler . createBranchFromCommit ( this . data ) ; } }