composer/composer — pull request #2312 by pl-github (2013-10-09 10:30:50+00:00)
Title: new command line option --no-dependencies for update

In big projects with a lot of dependent packages I want to be able to cherry pick single updates without updating all dependencies of the whitelisted packages.

-- COMPOSER --
"repositories": [
{
"type": "package",
"package": [
{ "name": "whitelisted", "version": "1.1.0", "require": { "dependency": "1.*" } },
{ "name": "whitelisted", "version": "1.0.0", "require": { "dependency": "1.*" } },
{ "name": "dependency", "version": "1.1.0" },
{ "name": "dependency", "version": "1.0.0" }
]
}
],
-- INSTALLED --
{ "name": "whitelisted", "version": "1.0.0", "require": { "dependency": "1.*" } },
{ "name": "dependency", "version": "1.0.0" },

`composer update --no-dependencies whitelisted` should only update package "whitelisted" but not "dependency"