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

Re: [PATCH] gitweb: Show project README if available

From
Jakub Narebski <jnareb@gmail.com>
Date
Oct 10, 2006, 09:00 UTC
Message-ID
<egfndo$lg6$1@sea.gmane.org>
In-Reply-To
<20061010025627.19317.70511.stgit@rover>
Petr Baudis wrote:
> +                       print $_ while (<$fd>);
Wouldn't it be better to do it in slurp mode, i.e.
        {
                local $/
                print <$fd>;
        }
instead?

Do you assume that README is HTML fragment? If not, you should esc_html it. Besides, we have similar (if assumed to have one line only) file, namely description.

Besides, README for a project can be huge. Git README has 589 lines!
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Andreas EricssonNext: Petr Baudis
Message 8 of 14 in “gitweb: Show project README if available”
  1. gitweb: Show project README if availablePetr Baudis, Oct 10, 2006
  2. Junio C HamanoOct 10, 2006
  3. Junio C HamanoOct 10, 2006
  4. Petr BaudisOct 10, 2006
  5. Jakub NarebskiOct 10, 2006
  6. Luben TuikovOct 10, 2006
  7. Andreas EricssonOct 10, 2006
  8. Jakub NarebskiOct 10, 2006
  9. Petr BaudisOct 10, 2006
  10. Jakub NarebskiOct 11, 2006
  11. Jeff KingOct 11, 2006
  12. Jakub NarebskiOct 11, 2006
  13. Junio C HamanoOct 11, 2006
  14. Jakub NarebskiOct 11, 2006

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.