composer-patches icon indicating copy to clipboard operation
composer-patches copied to clipboard

Defined base structure and all options available README

Open Ig0r-M-magic42 opened this issue 5 years ago • 1 comments

For people new to this is important to know what options are available and what are the benefits of using them, for example did not knew that prefer install to source will allow to use git apply instead of patch which was one of the reasons a patch was applied but still flagged as not applied (did not look further into this to understand why).

  "config": {
    "preferred-install": "source"
  },

Ig0r-M-magic42 avatar Aug 29 '19 14:08 Ig0r-M-magic42

Agreed - i did not know that either.

weitzman avatar Nov 13 '20 04:11 weitzman

I've made a note to document this in main.

cweagans avatar Feb 07 '23 21:02 cweagans

Can you take a look at https://docs-staging.cweagans.net/composer-patches/usage/configuration/ and let me know if it's along the lines of what you were looking for?

cweagans avatar Feb 10 '23 23:02 cweagans

(The configuration options there are specific to 2.x)

cweagans avatar Feb 10 '23 23:02 cweagans

@cweagans documentation looks good, what about "preferred-install": "source" which was defining via what software a patch was applied, i.e. either using patch or git (see body of the issue), currently i do not see this configuration and was wondering if the logic changed maybe since this issue has been raised?

Ig0r-M-magic42 avatar Feb 14 '23 13:02 Ig0r-M-magic42

It has changed. Right now, main only uses git to apply patches. If the target isn't a git repo, the plugin creates a temporary git repo so that the patch can be applied.

cweagans avatar Feb 14 '23 15:02 cweagans