Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Reviewed-by: Jonathan Nieder <jrnieder <at> gmail.com> Signed-off-by: Junio C Hamano <[email protected]>
- Loading branch information