Naming Things is Hard

Today I Learned

...a dumb little drush trick for checking feature changes

Working with features in Drupal? Like silly little drush tricks? Here's a quick way to see if the thing you just changed somewhere on your development site changes anything in a feature.

Start with: 

drush fl > ~/temp/drupal/before-fl.txt

Change something in Drupal, and then get an updated feature list:

drush fl > ~/temp/drupal/after-fl.txt

Then check for a change between the files:

git diff --no-index ~/temp/drupal/before-fl.txt ~/temp/drupal/after-fl.txt

This works best, of course, if the feature wasn't already in an overridden state.

You could probably do the same thing but use "drush fda -y" as your before/after check, to find the exact change that occurred, particularly if everything is in an overridden state. (I mean, sure, ideally, features are always nice and clean, but...but, well, they're not.)

tags

Home & About & Micro.blog & Feed (Atom)