{"thread":{"id":"13085","subject":"[PATCH] Removing hard-coded \"via git-CVS emulator\" message for commits","startedAt":"2008-04-13T07:15:40Z","lastAt":"2008-04-13T14:03:26Z","messageCount":2,"participants":["Fredrik Noring","Miklos Vajna"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"74242","messageId":"17235429-EC83-4D73-97A5-BA835F3CD71D@nocrew.org","threadId":"13085","inReplyTo":null,"subject":"[PATCH] Removing hard-coded \"via git-CVS emulator\" message for commits","fromName":"Fredrik Noring","fromEmail":"noring@nocrew.org","sentAt":"2008-04-13T07:15:40Z","receivedAt":"2008-04-13T07:15:40Z","isPatch":true,"sender":{"key":"noring@nocrew.org","avatar":null},"body":"Hi all,\n\nAttached patch removes the hard-coded \"via git-CVS emulator\" string  \nappended to every commit message by the git-cvsserver command. I  \nbelieve there are \"commit-msg\" hooks etc. that can achieve the same  \neffect in cases where this string is desirable?\n\n  git-cvsserver.perl |    1 -\n  1 file changed, 1 deletion(-)\n\nWithout the patch, a typical commit message using git-cvsserver looks  \nlike this:\n\ncommit 4bea43114a8f7fafd72c67cd98c5d9e98d1a7cbb\nAuthor: Fredrik Noring\nDate:   Sun Apr 13 09:10:05 2008 +0200\n\n     Commit message...\n\n     via git-CVS emulator\n\nAll the best,\nFredrik\n\n\n\ndiff --git a/git-cvsserver.perl b/git-cvsserver.perl\nindex 29dbfc9..59a1609 100755\n--- a/git-cvsserver.perl\n+++ b/git-cvsserver.perl\n@@ -1325,7 +1325,6 @@ sub req_ci\n     # write our commit message out if we have one ...\n     my ( $msg_fh, $msg_filename ) = tempfile( DIR => $TEMP_DIR );\n     print $msg_fh $state->{opt}{m};# if ( exists ( $state->{opt}{m} ) );\n-    print $msg_fh \"\\n\\nvia git-CVS emulator\\n\";\n     close $msg_fh;\n \n     my $commithash = `git-commit-tree $treehash -p $parenthash < $msg_filename`;\n\n\n\n"},{"id":"74257","messageId":"20080413140326.GU24141@genesis.frugalware.org","threadId":"13085","inReplyTo":"17235429-EC83-4D73-97A5-BA835F3CD71D@nocrew.org","subject":"Re: [PATCH] Removing hard-coded \"via git-CVS emulator\" message for commits","fromName":"Miklos Vajna","fromEmail":"vmiklos@frugalware.org","sentAt":"2008-04-13T14:03:26Z","receivedAt":"2008-04-13T14:03:26Z","isPatch":true,"sender":{"key":"vmiklos@frugalware.org","avatar":"https://gravatar.com/avatar/401c1cbbb3a5d13e650c691a2c71d6fd0b80df1a01bc74d9f1972675dd58f2bd?d=mp&s=160"},"body":"On Sun, Apr 13, 2008 at 09:15:40AM +0200, Fredrik Noring <noring@nocrew.org> wrote:\n> Attached patch removes the hard-coded \"via git-CVS emulator\" string \n\nPlease send a proper git patch, see Documentation/SubmittingPatches.\n\nThanks.\n"}]}