Thread (11 messages) flat view 11 messages, 3 authors, 2016-06-15

Re: [PATCH 4/7] gitweb: Expand href() function to use key as param name for no mapping

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:42:37

On 8/17/06, Junio C Hamano [off-list ref] wrote:
Jakub Narebski [off-list ref] writes:
quoted
Expand href() function to use key name of params hash as a query param
name, if there is no mapping for given key name.

It is now safer to use href(); no errors, but links might not work
correctly if caller didn't provide correct arguments.

Future proofing.
I think that is not a "future proofing" but is "sweeping mess
under the rug" ;-).
At least leave 'if (exists $mapping{$_})' even if you remove the 'else' part.

[...]
Obviously unrelated and probably unplanned revert of [2/7] in
the series, so will not apply.
Ooops, sorry, I haven't noticed this... Very unplanned.

-- 
Jakub Narebski
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help