Re: Diffs into default log template
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2004-10-12 14:55:55 CEST
Chris Pepper wrote:
I create my log message like this:
svnlogmsg | vim -
where 'svnlogmsg' is a script I wrote (attached) to write the diff and also write the names of files and functions changed, in the format specified in HACKING; and 'vim -' invokes my editor starting with text read from standard input.
I do this before issuing an 'svn commit', because there is usually something I want to check or change before finally committing it, but if you want this sort or thing to be invoked by 'svn commit' as a log message editor, I'm sure you can easily modify it into a suitable form.
'svnlogmsg' takes an optional list of paths, just as 'svn diff' does.
'svnlogmsg' uses GNU 'diff -p' to find the names of functions, and the result is not accurate - but it gets most of the right symbols most of the time and provides a reasonable starting point.
- Julian
#!/bin/bash
---------------------------------------------------------------------
|
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.