Posted by sagannotcarl on June 1, 2011 at 5:28pm
4 followers
| Project: | Features |
| Version: | 7.x-1.0-beta3 |
| Component: | Documentation |
| Category: | feature request |
| Priority: | normal |
| Assigned: | febbraro |
| Status: | closed (fixed) |
Issue Summary
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
| Attachment | Size |
|---|---|
| features.drush_.inc_diff_help_text.patch | 1.47 KB |
Comments
#1
I realized that the order of the lines was reversed. Now the key displays in the same order as the changes.
#2
Resubmitting patch for formatting.
#3
#4
Added to 7.x branch, thanks. http://drupalcode.org/project/features.git/commit/0c2c1f6
#5
Automatically closed -- issue fixed for 2 weeks with no activity.