From: Jakub Narebski Date: Tue, 9 Dec 2008 22:48:51 +0000 (+0100) Subject: gitweb: A bit of code cleanup in git_blame() X-Git-Tag: v1.6.2-rc0~189^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d2ce10d7b7d67ff8b50ae749ce4c5b1a2b8d133c?ds=inline;hp=d2ce10d7b7d67ff8b50ae749ce4c5b1a2b8d133c gitweb: A bit of code cleanup in git_blame() Among others, here are the highlights: * move variable declaration closer to the place it is set and used, if possible, * uniquify and simplify coding style a bit, which includes removing unnecessary '()'. * check type only if $hash was defined, as otherwise from the way git_get_hash_by_path() is called (and works), we know that it is a blob, * use modern calling convention for git-blame, * remove unused variable, * don't use implicit variables ($_), * add some comments Signed-off-by: Jakub Narebski Acked-by: Luben Tuikov Signed-off-by: Junio C Hamano ---