[PATCH] Removing hard-coded "via git-CVS emulator" message for commits
- From
- Fredrik Noring <noring@nocrew.org>
- Date
- Apr 13, 2008, 07:15 UTC
- Message-ID
- <17235429-EC83-4D73-97A5-BA835F3CD71D@nocrew.org>
Hi all,
Attached patch removes the hard-coded "via git-CVS emulator" string appended to every commit message by the git-cvsserver command. I believe there are "commit-msg" hooks etc. that can achieve the same effect in cases where this string is desirable?
git-cvsserver.perl | 1 - 1 file changed, 1 deletion(-)
Without the patch, a typical commit message using git-cvsserver looks like this:
commit 4bea43114a8f7fafd72c67cd98c5d9e98d1a7cbb Author: Fredrik Noring Date: Sun Apr 13 09:10:05 2008 +0200
Commit message...
via git-CVS emulator
All the best, Fredrik
diff --git a/git-cvsserver.perl b/git-cvsserver.perl index 29dbfc9..59a1609 100755 --- a/git-cvsserver.perl +++ b/git-cvsserver.perl @@ -1325,7 +1325,6 @@ sub req_ci # write our commit message out if we have one ... my ( $msg_fh, $msg_filename ) = tempfile( DIR => $TEMP_DIR ); print $msg_fh $state->{opt}{m};# if ( exists ( $state->{opt}{m} ) ); - print $msg_fh "\n\nvia git-CVS emulator\n"; close $msg_fh; my $commithash = `git-commit-tree $treehash -p $parenthash < $msg_filename`;