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

Re: [RFC/PATCH 1/3] gitweb: make suspenders more useful

From
Mark Rada <marada@uwaterloo.ca>
Date
Aug 23, 2009, 22:39 UTC
Message-ID
<4A91C512.7000707@mailservices.uwaterloo.ca>
In-Reply-To
<4A91BE50.7070103@vilain.net>
On 23/08/09 6:10 PM, Sam Vilain wrote:
Show 10 quoted lines
> Mark Rada wrote:
>> Subject: [RFC/PATCH 1/3] gitweb: make suspenders more useful
> 
> Suspenders?  Really?
> 
> Sam
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Context:
On 21/08/09 5:43 PM, Junio C Hamano wrote:
Show 19 quoted lines
> Mark A Rada <marada@uwaterloo.ca> writes:
> 
>> Unless I missed a case, the tests show that the extra condition check
>> that was added in the &git_snapshot routine is never actually executed,
>> because a disabled snapshot format is not added to @snapshot_fmts, which
>> is checked first.
>>
>> snippet:
>> 5178     } elsif (!grep($_ eq $format, @snapshot_fmts)) {
>> 5179         die_error(403, "Unsupported snapshot format");
>> 5180     } elsif ($known_snapshot_formats{$format}{'disabled'}) {
>> 5181         die_error(403, "Snapshot format not allowed");
>> 5182     }
>> 5183
> 
> True; filter_snapshot_fmts looks at 'disabled' first.
> 
> I do not mind keeping these two lines as belt-and-suspender, though.
> 

Yup...I couldn't think of an appropriate title and I expect this patch to be edited (for another reason) or thrown out anyways.

-- 
Mark A Rada (ferrous26)
marada@uwaterloo.ca
Previous: Sam VilainNext: Sam Vilain
Message 3 of 5 in “gitweb: make suspenders more useful”
  1. 1/3 gitweb: make suspenders more usefulMark Rada, Aug 23, 2009
  2. Sam VilainAug 23, 2009
  3. Mark RadaAug 23, 2009
  4. Sam VilainAug 23, 2009
  5. 1/3 gitweb: improve snapshot error handlingMark Rada, Aug 24, 2009

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.