From: Ralf Thielow Date: Mon, 19 Jul 2010 16:26:12 +0000 (+0200) Subject: update-server-info: Shorten read_pack_info_file() X-Git-Tag: v1.7.1.2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c173dad58787a7f11a526dbcdaa5a2fe9ff1c87f?hp=c173dad58787a7f11a526dbcdaa5a2fe9ff1c87f update-server-info: Shorten read_pack_info_file() The correct responses to a D and a T line in .git/objects/info/packs are the same, so combine their case arms. In both cases we already ‘goto’ out of the switch so while at it, remove a redundant ‘break’ to avoid yet another line of code. Signed-off-by: Ralf Thielow Reviewed-by: Jonathan Nieder gmail.com> Signed-off-by: Junio C Hamano ---