transport: refactor protocol whitelist code
authorJeff King <redacted>
Tue, 22 Sep 2015 22:03:49 +0000 (18:03 -0400)
committerJunio C Hamano <redacted>
Fri, 25 Sep 2015 22:28:36 +0000 (15:28 -0700)
commit5088d3b38775f8ac12d7f77636775b16059b67ef
treed7530a9bc0fba6dfa3d76c116f8401965d966d3e
parent33cfccbbf35a56e190b79bdec5c85457c952a021
transport: refactor protocol whitelist code

The current callers only want to die when their transport is
prohibited. But future callers want to query the mechanism
without dying.

Let's break out a few query functions, and also save the
results in a static list so we don't have to re-parse for
each query.

Based-on-a-patch-by: Blake Burkhart <redacted>
Signed-off-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
transport.c
transport.h
git clone https://git.99rst.org/PROJECT