Re: [PATCH 31/31] gitweb: make hash size independent

2019-02-12 Thread Ævar Arnfjörð Bjarmason
On Tue, Feb 12 2019, brian m. carlson wrote: > Gitweb has several hard-coded 40 values throughout it to check for > values that are passed in or acquired from Git. To simplify the code, > introduce a regex variable that matches either exactly 40 or exactly 64 > hex characters, and use this vari

[PATCH 31/31] gitweb: make hash size independent

2019-02-11 Thread brian m. carlson
Gitweb has several hard-coded 40 values throughout it to check for values that are passed in or acquired from Git. To simplify the code, introduce a regex variable that matches either exactly 40 or exactly 64 hex characters, and use this variable anywhere we would have previously hard-coded a 40 i