diff options
author | Jakub Narebski <jnareb@gmail.com> | 2009-05-07 19:11:29 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-09 01:35:15 -0700 |
commit | 74fd8728e2abd46a6276f6d48bfc6c9f01d74570 (patch) | |
tree | a57309997897c223d9b930746b95589bcc91a22d /t/t4013/diff.log_--root_--patch-with-stat_--summary_master | |
parent | Start 1.6.4 development (diff) | |
download | tgif-74fd8728e2abd46a6276f6d48bfc6c9f01d74570.tar.xz |
gitweb: Remove function prototypes (cleanup)
Use of function prototypes is considered bad practice in Perl. The
ones used here didn't accomplish anything anyhow, so they've been
removed.
>From perlsub(1):
[...] the intent of this feature [prototypes] is primarily to let
you define subroutines that work like built-in functions [...]
you can generate new syntax with it [...]
We don't want to have subroutines behaving exactly like built-in
functions, we don't want to define new syntax / syntactic sugar, so
prototypes in gitweb are not needed... and they can have unintended
consequences.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.log_--root_--patch-with-stat_--summary_master')
0 files changed, 0 insertions, 0 deletions