How to use one script for diff and diff3 in Subversion?

Posted by lamcro on Stack Overflow See other posts from Stack Overflow or by lamcro
Published on 2010-05-05T19:26:24Z Indexed on 2010/05/05 19:28 UTC
Read the original article Hit count: 255

Filed under:
|
|
|

I have a perl script that determines what external diff to use depending on the file's content. I would like to use it determine external diff3 also.

Which is the best method to know how my script is being called?

I was planning to catch the last three parameters, and verify if they are all files, to use the diff3 options, but I'm hoping there is a cleaner method.

© Stack Overflow or respective owner

Related posts about perl

Related posts about subversion