gitweb: A bit of code cleanup in git_blame()
authorJakub Narebski <jnareb@gmail.com>
Tue, 9 Dec 2008 22:48:51 +0000 (23:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Dec 2008 08:21:05 +0000 (00:21 -0800)
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 <jnareb@gmail.com>
Acked-by: Luben Tuikov <ltuikov@yahoo.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found