Closed (fixed)
Project:
Features
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Aug 2012 at 19:57 UTC
Updated:
4 Sep 2013 at 18:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
pfrenssenComment #2
mpotter commentedI'll take a look at this soon. Seems pretty straightforward.
Also wanted to note for others looking here that if you install the latest version of the Features Override module, it will add additional "diff" functionality to the "Review Overrides" tab in the UI that gives more context-specific help on the changes being made. However this doesn't help with the "drush fd" command, so your patch is still useful.
Comment #3
roderikYes, it works, is straightforward, and the patch still applies to 2.x with some offset.
I almost set RTBC... but I don't really like the naming of the option ("unified").
'unified' does not mean "number of context lines". It's a certain output style (formatting), which git produces / which diff produces only when you provide the '--unified' or '-u' option.
And 'drush fd' output is not 'unified' style.
So I propose to name '--context', for number of context lines.
(Note: for the same in the web UI, see #2052187: Customize output (context and spacing) in features UI diff)
Comment #4
mpotter commentedNo, please, anything but "context". LOL, it's one of those over-used words already in Drupal.
How about something simply like --lines ?
Comment #5
pfrenssen--linesit shall be!Comment #6
mpotter commentedCommitted to cd965d7.