OSDN Git Service

transport-helper.c: refactor set_helper_option()
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 12 Jun 2016 10:53:44 +0000 (17:53 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Jun 2016 21:38:16 +0000 (14:38 -0700)
commit9318c5dd140b55c0384843c57b4b24a378cd5068
tree4dfd27d2eb0ee1385b8ae82a0f51099c0282b75c
parentb5f62ebea55a07dbd9f68f33f5efbd0437946220
transport-helper.c: refactor set_helper_option()

For now we can handle two types, string and boolean, in
set_helper_option(). Later on we'll add string_list support, which does
not fit well. The new function strbuf_set_helper_option() can be reused
for a separate function that handles string-list.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport-helper.c