[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: vi-script to generate a log-msg from a patch

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2004-11-08 22:54:18 CET

Ph. Marek wrote:
> please see attached a small script which allows the formatting of a unified
> diff as a log-message, ie. with [[[ and ]]] and the file and function names.
>
> Usage is as follows:
> diff -urp subversion.orig subversion.mine > patch

Or,
    svn diff --diff-cmd=diff --extensions="-up" [TARGET...]

> (the -p tells diff to output the function names)
> vi patch
> :source diff_to_logmsg.vim
> and voila! Just the documentation has to be written :-)

According to HACKING, it ought to put a colon after the parenthesised function
name.

It ought to be noted that the generated list of function names is only as
accurate as the output of "diff -p", which is not very accurate - e.g. for
changes to a doc string appearing before a function, it generally outputs the
name of the _previous_ function.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 8 22:54:46 2004

This is an archived mail posted to the Subversion Dev mailing list.