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
Comment #1
sagannotcarl commentedI realized that the order of the lines was reversed. Now the key displays in the same order as the changes.
Comment #2
drupal_was_my_past commentedResubmitting patch for formatting.
Comment #3
febbraro commentedComment #4
febbraro commentedAdded to 7.x branch, thanks. http://drupalcode.org/project/features.git/commit/0c2c1f6