diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-08-16 10:24:21 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-08-16 10:24:21 -0300 |
commit | 4f97ebf2c76b8763da9f57e7ad6d1457fc97a2bd (patch) | |
tree | 3b589dddf7f7f04abdcdcf773e69a2a3dde0a1a6 /v4l/scripts/hghead.pl | |
parent | 2020c904cc51965234736bfabc7769532a532fad (diff) | |
download | mediapointer-dvb-s2-4f97ebf2c76b8763da9f57e7ad6d1457fc97a2bd.tar.gz mediapointer-dvb-s2-4f97ebf2c76b8763da9f57e7ad6d1457fc97a2bd.tar.bz2 |
Properly handles commit messages with date: field
From: Mauro Carvalho Chehab <mchehab@infradead.org>
This patch allows a better support for third party patches. Now, it will
properly recognize and proccess messages with the following format:
Date: <some date>
From: <some developer>
Subject: <patch subject>
<body>
This will help to better proccess messages received via email.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/scripts/hghead.pl')
-rwxr-xr-x | v4l/scripts/hghead.pl | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/v4l/scripts/hghead.pl b/v4l/scripts/hghead.pl index 7dd40380a..dc989dd61 100755 --- a/v4l/scripts/hghead.pl +++ b/v4l/scripts/hghead.pl @@ -1,6 +1,5 @@ #!/usr/bin/perl use strict; -use Date::Parse; ################################################################# # analyse diffs @@ -46,18 +45,13 @@ while ($line = <IN>) { last; } - if ($line =~ m/^# Date\s*(.*)/) { + if ($line =~ m/^#\s*Date\s*(.*)/) { print "#Date: $1\n"; + next; } if ($line =~ m/^Date:\s*(.*)/) { - my $time = str2time($1); - - if ($time) { - print "#Date: $time 0\n"; - } else { - print "#Date: $1\n"; - } + print "#Date: $1\n"; next; } |