Always set 'from_file' and 'to_file' keys when parsing raw diff output format line, even if filename didn't change (file was not renamed). This allows for less code (and no problems with file named '0'); use this. Signed-off-by: Jakub Narebski <jnareb@xxxxxxxxx> --- This simplifies code a bit _and_ fortifies gitweb against filenames like '0' (although it does remove _fragments_ of lines, not lines themselves, so it is not visible in diffstat). gitweb/gitweb.perl | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-)
Attachment:
0004-gitweb-Always-set-from_file-and-to_file-in-pars.patch
Description: Binary data