I am constantly confusing myself with reading the output from features-diff. I got tired of using a post-it on my monitor to remember which is in code and which is in the database.

Here is a patch that outputs a short key when you run the features-diff command that tells you which is in code and which is in the database.

/**
 * Database. drush features-update if you want to keep
 * Code. drush features-revert if you want to keep
 **/

Hopefully others find this helpful as well.

I wasn't sure what the proper format should be for the output. I used drupal module header comment style but maybe there is something more appropriate for this situation.

Colin

Comments

sagannotcarl’s picture

I realized that the order of the lines was reversed. Now the key displays in the same order as the changes.

drupal_was_my_past’s picture

Version: 7.x-1.0-beta2 » 7.x-1.0-beta3
StatusFileSize
new1.34 KB

Resubmitting patch for formatting.

febbraro’s picture

Assigned: Unassigned » febbraro
febbraro’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.