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

Re: [PATCH] gitweb: More detailed error messages for snapshot format

From
Matt McCutchen <hashproduct@gmail.com>
Date
Jul 24, 2007, 21:50 UTC
Message-ID
<3bbc18d20707241450y48ef0485i2809c632ac2e643@mail.gmail.com>
In-Reply-To
<11853108372532-git-send-email-jnareb@gmail.com>
On 7/24/07, Jakub Narebski <jnareb@gmail.com> wrote:
Show 8 quoted lines
> Improve error messages for snapshot format in git_snapshot:
> distinguish between situation where snapshots are turned off, where
> snapshot format ('sf') parameter is invalid, where given snapshot
> format does not exist in %known_snapshot_formats hash, and where
> gitweb was given unsupported snapshot format.
>
> While at it, use first from all supported snapshots format as default,
> if no snapshot format was provided.

I tested the patch and it worked properly: the errors appeared at the appropriate times and the first supported format was used as the default.

I also noticed that the check for an "invalid" format requires that it contain at least one good character, not that it contain no bad characters, which was what I originally meant. It would be nice to fix the check, or the check could even be removed altogether since gitweb refuses any format that isn't in %known_snapshot_formats . (I think I was misguidedly paranoid to add it in the first place.)

Previous: Jakub NarebskiNext: Jakub Narebski
Message 2 of 3 in “gitweb: More detailed error messages for snapshot format”
  1. gitweb: More detailed error messages for snapshot formatJakub Narebski, Jul 24, 2007
  2. Matt McCutchenJul 24, 2007
  3. gitweb: More detailed error messages for snapshot formatJakub Narebski, Jul 24, 2007

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.