Reputation: 516
I'm contributing to quite a large project with lots of submodules, and using repositories
section of composer.json
etc.
Sometimes it is handy to edit files in the vendor
directory instead of the real repository (e.g. there are some submodules with tests for the other ones).
Then I use composer update
and a message pops up:
Discard changes [y,n,v,d,s,?]?
I can choose the option d
, thus getting a nice diff patch I can later use for the real Git repository. Can I have such a patch in a simpler way?
Upvotes: 0
Views: 4742
Reputation: 22164
You can go to dependency directory and use git to show diff:
cd vendor/somevendor/somepackage
git diff HEAD
This is what Composer is actually doing.
Upvotes: 1