From: Felipe Contreras Date: Tue, 30 Apr 2013 21:49:11 +0000 (-0500) Subject: sha1_name: compare variable with constant, not constant with variable X-Git-Tag: v1.8.4-rc0~180^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1f27e7d56b65fdc232a5a2a4de2ee97ff5eb176b?hp=1f27e7d56b65fdc232a5a2a4de2ee97ff5eb176b sha1_name: compare variable with constant, not constant with variable And restructure the if/else to factor out the common "is len positive?" test into a single conditional. Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano ---