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

Re: [PATCH] gitweb: gitweb_check_feature always return list

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 1, 2006, 19:48 UTC
Message-ID
<eda2q0$la8$1@sea.gmane.org>
In-Reply-To
<7vk64n5qep.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 12 quoted lines
> Jakub Narebski <jnareb@gmail.com> writes:
> 
>> Modified feature_blame so it returns one-element list and not scalar,
>> thus making gitweb_check_feature always return list.  Updated comment
>> to explain that part.
> 
> I do not understand what you are fixing.
> 
>       sub A { return (1); }
>       sub B { return 1; }
> 
> Don't they quack the same way?

Well, that is just nitpicking. gitweb_check_feature returns list if feature is not overridable, so I made it that it always returns list.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Junio C HamanoNext: Jakub Narebski
Message 5 of 6 in “gitweb: Fix git_blame”
  1. gitweb: Fix git_blameAneesh Kumar K.V, Sep 1, 2006
  2. Jakub NarebskiSep 1, 2006
  3. gitweb: gitweb_check_feature always return listJakub Narebski, Sep 1, 2006
  4. Junio C HamanoSep 1, 2006
  5. Jakub NarebskiSep 1, 2006
  6. Jakub NarebskiSep 1, 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.