git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Fix empty line processing in git-shortlog.perl

From
Petr Baudis <pasky@suse.cz>
Date
Nov 6, 2005, 22:44 UTC
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 <pasky@suse.cz> told me that...

Show 14 quoted lines
> 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.
Previous: Petr BaudisNext: Junio C Hamano
Message 2 of 4 in “Fix empty line processing in git-shortlog.perl”
  1. Fix empty line processing in git-shortlog.perlPetr Baudis, Nov 6, 2005
  2. Petr BaudisNov 6, 2005
  3. Junio C HamanoNov 7, 2005
  4. Petr BaudisNov 7, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.