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

Re: Shell script to make a log message template

From: Stefan Fuhrmann <eqfox_at_web.de>
Date: Thu, 14 Jun 2012 12:57:38 +0200

On 06/11/2012 03:41 PM, Julian Foad wrote:
> For anyone interested, attached is the shell script I use to generate
> a log message template for a particular svn diff.
>
> It runs 'svn status' on the given target(s) to find what files to
> include, then 'svn diff' for each file, and writes to stdout a log
> message and diff in the following format:
>
> [[[
>
> * file/.../name.c
> (func_name):
>
> [...]
>
> --- This line and [...] will be ignored ---
>
> Index: file/.../name.c
> ==================
> [...]
>
> ]]]
>
> The "This line ..." line allows me to use this whole text as the log
> message input file when committing.
>
> By using diff options "no context lines" and "show C function names"
> for generating the template part of the output, it gets most function
> names right in C files, but get lots of them wrong in header files
> where the edits are in a comment preceding a declaration.
>

That script is brilliant! I hated writing log messages
but now it's just a ~/svnlogmsg.sh | gedit &

Thanks.

-- Stefan^2.
Received on 2012-06-14 12:58:15 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.