views:

39

answers:

1

How should I do to have the author (or committer) name/date added to the log message when "dcommitting" to svn?

For example, if the log message in Git is:

This is a nice modif

I'd like to have the message in svn be something like:

This is a nice modif
-----
Author: John Doo <[email protected]>  2010-06-10 12:38:22
Committer: Nice Guy <[email protected]>  2010-06-10 14:05:42

(Note that I'm mainly interested in the date, since I already mapped svn users in .svn-authors)

Any simple way? Hook needed? Other suggestion?
(See also: http://article.gmane.org/gmane.comp.version-control.git/148861)

Thank you in advance.

Yours faithfully,

-- Arnauld Van Muysewinkel

A: 

Is it just about changing log output format?

git log --pretty="format:%s %an %ae %cn %d"
git help log
takeshin
Not quite.It's about rewriting the log when you do "git svn dcommit".
Arnauld VM
I see. Sorry for misunderstanding, I have no experience with `git-svn`.
takeshin