import { IGitCherryPickCommandHandler } from '../../commandHandlers/types' ; import { CommitDetails } from '../../common/types' ; import { BaseCommitCommand } from '../baseCommitCommand' ; export class CherryPickCommand extends BaseCommitCommand { constructor ( commit , private handler ) { super ( commit ) ; this . setTitle ( `$(git-pull-request) Cherry pick this (${ commit . logEntry . hash . short }) commit into current branch` ) ; this . setCommand ( 'git.commit.cherryPick' ) ; this . setCommandArguments ( [ commit ] ) ; } public execute ( ) { this . handler . cherryPickCommit ( this . data ) ; } }