From: David Kågedal Date: Wed, 07 Sep 2005 08:00:02 GMT Subject: [PATCH] Added an option to cvsimport to specify email domain Message-ID: The authorship info in commits created by git-cvsimport-script only contains the username of the CVS committer. This patch adds a flag -e to git-cvsimport-script that makes it possible to specify an email domain that is added to all email addresses in the commit "author" and "committer" fields. --- I have stopped using cvsimport, because cvsps seems to produce bad output on the repository I'm using it with, but I had already prepared this patch. Documentation/git-cvsimport-script.txt | 8 +++++++- git-cvsimport-script | 18 +++++++++++++----- 2 files changed, 20 insertions(+), 6 deletions(-) cabbc2b5cae2dcd892d02a3c679698cdfb3b9de5 diff --git a/Documentation/git-cvsimport-script.txt b/Documentation/git-cvsimport-script.txt --- a/Documentation/git-cvsimport-script.txt +++ b/Documentation/git-cvsimport-script.txt @@ -12,7 +12,9 @@ SYNOPSIS 'git-cvsimport-script' [ -o ] [ -h ] [ -v ] [ -d ] [ -p ] [ -C ] [ -i ] [ -k ] - [ -s ] [ -m ] [ -M regex ] [ ] + [ -s ] [ -m ] [ -M regex ] + [ -e ] + [ ] DESCRIPTION @@ -86,6 +88,10 @@ OPTIONS -s :: Substitute the character "/" in branch names with +-e :: + Append '@' to the author name to use as the email + address in commit objects. + OUTPUT ------ If '-v' is specified, the script reports what it is doing. diff --git a/git-cvsimport-script b/git-cvsimport-script --- a/git-cvsimport-script +++ b/git-cvsimport-script @@ -29,19 +29,20 @@ use IPC::Open2; $SIG{'PIPE'}="IGNORE"; $ENV{'TZ'}="UTC"; -our($opt_h,$opt_o,$opt_v,$opt_k,$opt_u,$opt_d,$opt_p,$opt_C,$opt_z,$opt_i,$opt_s,$opt_m,$opt_M); +our($opt_h,$opt_o,$opt_v,$opt_k,$opt_u,$opt_d,$opt_p,$opt_C,$opt_z,$opt_i,$opt_s,$opt_m,$opt_M,$opt_e); sub usage() { print STDERR <