threads / patch / 13085

patchRemoving hard-coded "via git-CVS emulator" message for commits

Subject: [PATCH] Removing hard-coded "via git-CVS emulator" message for commits

## tl;dr

2 messages between Apr 13, 2008 and Apr 13, 2008. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Fredrik Noring· Apr 13, 2008, 07:15 UTC · lore
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

Show changes to git-cvsserver.perl +0 −1
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`;
Miklos Vajna· Apr 13, 2008, 14:03 UTC · re: Fredrik Noring · lore

Re: [PATCH] Removing hard-coded "via git-CVS emulator" message for commits

On Sun, Apr 13, 2008 at 09:15:40AM +0200, Fredrik Noring <noring@nocrew.org> wrote:
> Attached patch removes the hard-coded "via git-CVS emulator" string 
Please send a proper git patch, see Documentation/SubmittingPatches.
Thanks.

← back to recent threads