public static function pick(Repository $repository, $treeish = null)
    {
        $commit = new self($repository, $treeish);
        $commit->createFromCommand();

        return $commit;
    }
public static function pick(Repository $repository, $treeish = null)
    {
        $commit = new self($repository, $treeish);
        $commit->createFromCommand();

        return $commit;
    }
public static function pick ( Repository $ repository , $ treeish = null ) { $ commit = new self ( $ repository , $ treeish ) ; $ commit -> createFromCommand ( ) ; return $ commit ; }
pick an existing commit

@param Repository              $repository repository
@param TreeishInterface|string $treeish    treeish

@throws \RuntimeException
@throws \Symfony\Component\Process\Exception\RuntimeException
@return Commit
pick an existing commit