Howdy, all. It took some effort for this SysAdmin to craft a shell script to meet this "EasyHack", but here it is in all it's ugly glory. There's more to do, but this does work, if inelegantly. I'm attaching the script (which I verified should work with /bin/sh, though I've only developed it under Bash), and I'm attaching a gzip-ed test output from "git format-patch -M -C <tag>" so you can see the damage it does. Please let me know if you need info about usage (though hopefully the comments tell the story). While it isn't written in Perl or Python, I hope you find it useful. I look forward to substantive criticisms, bug reports and perhaps feature requests. Please feel free to convert to Perl/Python/Fortran/Ada/Logo/Assembler if you like. :) (Thanks for all the help, #libreoffice, especially Fridrich and mmeeks!) Cheers, Jesse Adelman San Francisco, CA http://www.boldandbusted.com/
Attachment:
add-modelines
Description: Binary data
Attachment:
0001-Test-of-add-modelines.patch.gz
Description: application/gzip