]> git.ipfire.org Git - thirdparty/git.git/commit
remote.c: convert if-else ladder to switch
authorDenton Liu <liu.denton@gmail.com>
Fri, 8 Aug 2025 07:24:48 +0000 (00:24 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Aug 2025 16:01:23 +0000 (09:01 -0700)
commitdfbfc2221b851ff2d09029a6737c4ec3208cf316
tree7d5401eb7b4dd250dead1029370f452b8c6c2a67
parentb33c590e4fb90d0da0e28e79d4a8ed84535f8b1a
remote.c: convert if-else ladder to switch

For better readability, convert the if-else ladder into a switch
statement.

Suggested-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c