src/PatchExecutor/PatchPatcher.php
private function initializeWindows()
    {
        $gitFolder = $this->findWindowsGitFolder();
        if ($gitFolder !== '') {
            $patchPath = "{$gitFolder}\\usr\\bin\\patch.exe";
            if (is_file($patchPath)) {
                try {
                    $patchPath = escapeshellarg($patchPath);
                    $this->checkCommandExists($patchPath);
                    $this->command = $patchPath;

                    return;
                } catch (Exception\CommandNotFound $x) {
                }
            }
        }
        try {
            $this->checkCommandExists('patch');
            $this->command = 'patch';

            return;
        } catch (Exception\CommandNotFound $x) {
        }
        throw new Exception\CommandNotFound('patch', <<<'EOT'
The patch command is currently not available.
You have these options:
1. Install Git for Windows, and add it to the PATH environment variable
2. Find a Windows port of the "patch" GNU utility and it to a directory in the current PATH
EOT
        );
    }
private function initializeWindows()
    {
        $gitFolder = $this->findWindowsGitFolder();
        if ($gitFolder !== '') {
            $patchPath = "{$gitFolder}\\usr\\bin\\patch.exe";
            if (is_file($patchPath)) {
                try {
                    $patchPath = escapeshellarg($patchPath);
                    $this->checkCommandExists($patchPath);
                    $this->command = $patchPath;

                    return;
                } catch (Exception\CommandNotFound $x) {
                }
            }
        }
        try {
            $this->checkCommandExists('patch');
            $this->command = 'patch';

            return;
        } catch (Exception\CommandNotFound $x) {
        }
        throw new Exception\CommandNotFound('patch', <<<'EOT'
The patch command is currently not available.
You have these options:
1. Install Git for Windows, and add it to the PATH environment variable
2. Find a Windows port of the "patch" GNU utility and it to a directory in the current PATH
EOT
        );
    }
private function initializeWindows ( ) { $ gitFolder = $ this -> findWindowsGitFolder ( ) ; if ( $ gitFolder !== '' ) { $ patchPath = "{$gitFolder}\\usr\\bin\\patch.exe" ; if ( is_file ( $ patchPath ) ) { try { $ patchPath = escapeshellarg ( $ patchPath ) ; $ this -> checkCommandExists ( $ patchPath ) ; $ this -> command = $ patchPath ; return ; } catch ( Exception \ CommandNotFound $ x ) { } } } try { $ this -> checkCommandExists ( 'patch' ) ; $ this -> command = 'patch' ; return ; } catch ( Exception \ CommandNotFound $ x ) { } throw new Exception \ CommandNotFound ( 'patch' ,  <<<'EOT'
The patch command is currently not available.
You have these options:
1. Install Git for Windows, and add it to the PATH environment variable
2. Find a Windows port of the "patch" GNU utility and it to a directory in the current PATH
EOT ) ; }
Configure the instance for Windows.

@throws \ComposerPatcher\Exception\CommandNotFound when the patch command is not available
Configure the instance for Windows .