diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-12 18:42:21 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-12 18:42:21 -0300 |
commit | 24d2656eda71a629c958936e8a6031300214f977 (patch) | |
tree | 693b00c71eb4c6531163e6efa126fe18545714db /v4l/scripts/prep_commit_msg.pl | |
parent | 6bee38194ba9451760aab353e5e825f98d639506 (diff) | |
parent | fd865ea20e1c05d7e9b7d081632db5fa6ad32a3a (diff) | |
download | mediapointer-dvb-s2-24d2656eda71a629c958936e8a6031300214f977.tar.gz mediapointer-dvb-s2-24d2656eda71a629c958936e8a6031300214f977.tar.bz2 |
merge: http://linuxtv.org/hg/~mkrufky/kernel-sync
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/scripts/prep_commit_msg.pl')
-rwxr-xr-x | v4l/scripts/prep_commit_msg.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/v4l/scripts/prep_commit_msg.pl b/v4l/scripts/prep_commit_msg.pl index 819009c57..cb0740a5d 100755 --- a/v4l/scripts/prep_commit_msg.pl +++ b/v4l/scripts/prep_commit_msg.pl @@ -62,12 +62,18 @@ if ($diff eq 'qdiff') { open IN, "hg qheader |"; my @header = <IN>; close IN; + if ($#header > 0) { # Use existing header print @header; exit; } # No header, use pre-made log message below + + # Hg will strip lines that start with "From: " from mq patch headers! + # In order to stop it, we insert this extra From line at the top, + # Hg will strip it and then leave the real from line alone. + print "From: $user\n\n"; } print <<"EOF"; # |