Skip to content

Commit

Permalink
Merge pull request #240 from RaphTbm/1.x--issue-230-add-patch-level-d…
Browse files Browse the repository at this point in the history
…ocumentation

Fix #230: Document project patchLevel in the Readme
  • Loading branch information
cweagans authored Oct 24, 2018
2 parents 02ae1ef + c63239e commit 1d89dcc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,21 @@ There may be situations in which you want to ignore a patch supplied by a depend
}
```

## Allowing to force the patch level (-pX)

Some situations require to force the patchLevel used to apply patches on a particular package.
Its useful for packages like drupal/core which packages only a subdir of the original upstream project on which patches are based.

```json
{
"extra": {
"patchLevel": {
"drupal/core": "-p2"
}
}
}
```

## Using patches from HTTP URLs

Composer [blocks](https://getcomposer.org/doc/06-config.md#secure-http) you from downloading anything from HTTP URLs, you can disable this for your project by adding a `secure-http` setting in the config section of your `composer.json`. Note that the `config` section should be under the root of your `composer.json`.
Expand Down

0 comments on commit 1d89dcc

Please sign in to comment.