2006-11-26 21:57:09

ruud
Developer emeritus
omega
Real name: Ruud van Melick
From: a galaxy far far away
Known languages: li,nl,en,(de)
Website

rvm_plugin_diff (v0.2)

Have you ever edited any of the plugins you have installed? If so, then rvm_plugin_diff is meant for you.

This plugin helps you do the following:

  • Find the changes you made (color diff, inspired by dev.textpattern.com).
  • Download the changes in unified diff format (a patch which can be sent to the plugin developer).
  • View the plugin code with line numbers at the beginning of each line, so you can find errors easier.

Download

The goal of this plugin is to make it easier to feed back bugfixes to the original authors of plugins. It’s often easy to fix a bug, but I found it hard to find what exactly I had changed afterwards (having edited around half the plugins in use at textpattern.org), so I had some fun writing this plugin and learned a lot about how (unified) diff and patch works.

Note: the patches this plugin creates, use UNIX-style line endings. If the original code was developed on a different platform, you may have to convert the line endings before applying the patch.

  • version 0.1 (2006-11-26)
  • version 0.2 (2006-11-29)
    • fix infinite loop in rare situations (which turn out to be not so rare)
    • separate modified and original plugins in the select list

Last edited by ruud (2006-11-29 00:23:37)

Offline

 

2006-11-26 23:59:19

variaas
Plugin Author
lambda
Real name: Amit
From: Chicago
Known languages: English
Website

Re: rvm_plugin_diff (v0.2)

awesome work! I just installed it and am beginning to play around with it.

Offline

 

2006-11-28 19:37:25

aba
Plugin Author
zêta
Real name: Andreas

Re: rvm_plugin_diff (v0.2)

textpattern shows me wich plugins were changed in the pluginlist – would it be possible to use this info in your plugin as well, e.g. by displaying the plugins that got changed in bold? Agreed, it’s only a minor visual change and maybe not worth the hassle, but still I would it consider a nice touch…

apart from that: nifty and very helpful plugin
Thank you for writing it.

Offline

 

2006-11-29 00:23:05

ruud
Developer emeritus
omega
Real name: Ruud van Melick
From: a galaxy far far away
Known languages: li,nl,en,(de)
Website

Re: rvm_plugin_diff (v0.2)

aba, instead of making the modified plugins bold, I’ve separated modified and original plugins in the select list. Is that clear enough, you think?
Note that simply saving a plugin without changing it is often enough to make it show up as modified (due to invisible changes in whitespace and line endings).

Offline

 

2006-11-30 06:00:14

net-carver
Admin
psi
Real name: Steve
From: UK
Known languages: English
Website

Re: rvm_plugin_diff (v0.2)

Ruud

very useful. Thank you!


Steve
Textile | My plugins on GitHub | @netcarver

Offline

 

2006-11-30 21:24:42

aba
Plugin Author
zêta
Real name: Andreas

Re: rvm_plugin_diff (v0.2)

great and very helpful. Thank you very very much.

Offline

 

2006-12-01 03:22:44

maniqui
Moderator
omega
Real name: Julián
From: Buenos Aires, Argentina
Known languages: es,en

Re: rvm_plugin_diff (v0.2)

Wow!
Thanks for this plug-in
I have installed it. I don’t know if I will really use it but it makes me feel like a kid enjoying a magic trick!


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

 

2008-03-14 10:14:04

candyman
Member
lambda
Real name: Alessandro
From: Italy
Known languages: Italian, English

Re: rvm_plugin_diff (v0.2)

Is the rvm_plugin_diff (v0.2) compatible with TXP 4.0.6?

I’ve installed it but it seems isn’t working.

EDIT: it works, it was my fault.

Last edited by candyman (2008-03-14 10:24:29)

Offline

 

Powered by FluxBB