Fixed issue #1276: Cannot show diff of renamed file

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Dropped unused variable

Signed-off-by: Sven Strickroth <email@cs-ware.de>