From dcaada6bad779f81742d07b0279ddae9bf4f136c Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Thu, 8 May 2008 09:13:23 -0300 Subject: hghead.pl: Fix script to avoid parsing errors From: Mauro Carvalho Chehab Driver were searching for "Index" on any part of the text, causing troubles when committing a few patches. Signed-off-by: Mauro Carvalho Chehab --- v4l/scripts/hghead.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v4l/scripts/hghead.pl b/v4l/scripts/hghead.pl index 9a6389311..1eb7355c4 100755 --- a/v4l/scripts/hghead.pl +++ b/v4l/scripts/hghead.pl @@ -25,7 +25,7 @@ my $fromname=""; open IN, "<$in"; while ($line = ) { - if ($line =~ m/Index.*/) { + if ($line =~ m/^\s*Index.*/) { last; } if ($line =~ m/^diff .*/) { -- cgit v1.2.3