2012/1/21 Pieter Praet <[email protected]>:
> On Sat, 21 Jan 2012 14:29:23 +0900, Miles Bader <[email protected]> wrote:
>> Hmm, OK, I added this feature locally, it works great!
>>
>> I submitted a github pull request with my change... hopefully I'm
>> following the correct procedure... :]
>
> I've been using this snippet for quite some time now:
....
> Works pretty much anywhere (i.e. outside of Magit as well).

It's really nice integrated into magit though -- you don't need to
invoke an extra command, you don't get any extraneous highlighting
except when a hunk is selected (even though diff-refine-hunk is pretty
good about keeping the noise level down, a "completely refined" file
can be distracting).  The patch I sent "unrefines" hunks when they're
deselected.

When compared to a "refine all hunks" command like you show, it's also
nice not to pay the speed penalty of refining a huge amount of changes
all at once (diff-refine-hunk isn't _super_ slow, but it isn't crazy
fast either).  [but really I'd say the main advantage of only doing a
hunk at a time is keeping the amount of distracting detail down.]

-miles

-- 
Cat is power.  Cat is peace.

Reply via email to