author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | |
Sun, 2 Nov 2008 09:21:37 +0000 (10:21 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 2 Nov 2008 23:37:55 +0000 (15:37 -0800) | ||
commit | 5e166843f502536df7e940486721057acf37ec23 | |
tree | cfa31e19dec00e0330a5fdd1afffd9cedd282e46 | tree | snapshot |
parent | 8db49a7f6f272ecb72c75a172e9753f3981488ce | commit | diff |
gitweb: make the supported snapshot formats array global
The array of supported snapshot format is used and defined (with two
different names) in two routines, one of which (format_snapshot_links)
is often called multiple times per page.
Simplify code and speed up page generation by making the array global.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The array of supported snapshot format is used and defined (with two
different names) in two routines, one of which (format_snapshot_links)
is often called multiple times per page.
Simplify code and speed up page generation by making the array global.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl | diff | blob | history |