From: Petr Baudis Date: Sun, 06 Nov 2005 22:44:22 GMT Subject: Re: [PATCH] Fix empty line processing in git-shortlog.perl Message-ID: <20051106224422.GQ1431@pasky.or.cz> In-Reply-To: <20051106224218.22797.97260.stgit@machine.or.cz> Dear diary, on Sun, Nov 06, 2005 at 11:42:18PM CET, I got a letter where Petr Baudis told me that... > diff --git a/git-shortlog.perl b/git-shortlog.perl > index 0b14f83..7283159 100755 > --- a/git-shortlog.perl > +++ b/git-shortlog.perl > @@ -94,7 +94,7 @@ sub changelog_input { > > # skip to non-blank line > elsif ($pstate == 3) { > - next unless /^\s*?(.*)/; > + next unless /^\s*?(\S.*)$/; > > # skip lines that are obviously not > # a 1-line cset description > Whoops, the ? was not part of the original regexp and is obviously useless. Well, I don't think it really matters, so it is up to you... -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ VI has two modes: the one in which it beeps and the one in which it doesn't.