]> git.ipfire.org Git - thirdparty/git.git/commit - convert.c
convert: refactor capabilities negotiation
authorLars Schneider <larsxschneider@gmail.com>
Fri, 30 Jun 2017 20:41:27 +0000 (22:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 30 Jun 2017 20:50:21 +0000 (13:50 -0700)
commit1514c8edd62d96006cd1de31e906ed5798dd4681
tree4d3065ce9d8f03106123b73ec3b096a4b86fe3aa
parent9364fc298a32b19fbfe545974cbf9e46d5c7e67f
convert: refactor capabilities negotiation

The code to negotiate long running filter capabilities was very
repetitive for new capabilities. Replace the repetitive conditional
statements with a table-driven approach. This is useful for the
subsequent patch 'convert: add "status=delayed" to filter process
protocol'.

Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
convert.c