From: Ian Jackson Date: Sun, 9 Oct 2016 00:08:26 +0000 (+0100) Subject: Quilt output: Normalise trailing newlines in commit message X-Git-Tag: archive/debian/2.0~64 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=6f64089c66b1d2a557dbb1007b4de96550a411be Quilt output: Normalise trailing newlines in commit message Signed-off-by: Ian Jackson --- diff --git a/dgit b/dgit index 2acf8495..4b593fce 100755 --- a/dgit +++ b/dgit @@ -3978,6 +3978,9 @@ sub quiltify ($$$$) { $msg =~ s/^(.*)\n*/$1\n/ or die "$cc $msg ?"; + my $strip_nls = sub { $msg =~ s/\n+$//; $msg .= "\n"; }; + $strip_nls->(); + my $title = $1; my $patchname = $title; $patchname =~ s/[.:]$//;