1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-06 20:26:11 +02:00

git-cvsserver: support multiline commit messages

Earlier, cvsserver barfed when you tried to check in files with a
multiline commit message.

That is what Argumentx is for... Argument: lines can be followed by
several Argumentx: lines, which means they should be appended.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Johannes Schindelin 2006-07-26 21:59:08 +02:00 committed by Junio C Hamano
parent a1dad607fa
commit 2c3cff4930

View File

@ -547,12 +547,15 @@ sub req_Argument
{
my ( $cmd, $data ) = @_;
# TODO : Not quite sure how Argument and Argumentx differ, but I assume
# it's for multi-line arguments ... somehow ...
# Argumentx means: append to last Argument (with a newline in front)
$log->debug("$cmd : $data");
push @{$state->{arguments}}, $data;
if ( $cmd eq 'Argumentx') {
${$state->{arguments}}[$#{$state->{arguments}}] .= "\n" . $data;
} else {
push @{$state->{arguments}}, $data;
}
}
# expand-modules \n