Textpattern Forum

You are not logged in. Register | Login | Help

#1 2006-11-26 21:57:09

ruud
Developer emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 4,500
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

#2 2006-11-26 23:59:19

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: rvm_plugin_diff (v0.2)

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

Offline

#3 2006-11-28 19:37:25

aba
Plugin Author
Registered: 2004-04-14
Posts: 119

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

#4 2006-11-29 00:23:05

ruud
Developer emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 4,500
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

#5 2006-11-30 06:00:14

net-carver
Admin
From: UK
Registered: 2006-03-08
Posts: 1,648

Re: rvm_plugin_diff (v0.2)

Ruud

very useful. Thank you!


Steve
Textile | My plugins on GitHub | @netcarver

Offline

#6 2006-11-30 21:24:42

aba
Plugin Author
Registered: 2004-04-14
Posts: 119

Re: rvm_plugin_diff (v0.2)

great and very helpful. Thank you very very much.

Offline

#7 2006-12-01 03:22:44

maniqui
Moderator
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 2,976
Website

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

#8 2008-03-14 10:14:04

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 438

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

Board footer

Powered by FluxBB