Download & Extend

Help text and key for features-diff

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

AttachmentSize
features.drush_.inc_diff_help_text.patch1.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.

AttachmentSize
features.drush_.inc_diff_help_text_1175684_2.patch 1.47 KB

#2

Version:7.x-1.0-beta2» 7.x-1.0-beta3

Resubmitting patch for formatting.

AttachmentSize
drush_features_help_text-1175684-2.patch 1.34 KB

#3

Assigned to:Anonymous» febbraro

#4

Status:needs review» fixed

Added to 7.x branch, thanks. http://drupalcode.org/project/features.git/commit/0c2c1f6

#5

Status:fixed» closed (fixed)

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