git-serve: Format usage text automatically
commite0450694216e5e88df6f48aaa9f7adc91e3f23f3
authorLukas Fleischer <lfleischer@archlinux.org>
Sat, 17 Sep 2016 14:02:42 +0000 (17 16:02 +0200)
committerLukas Fleischer <lfleischer@archlinux.org>
Sat, 17 Sep 2016 18:17:11 +0000 (17 20:17 +0200)
tree996dabb620b6bbe45f2e0e04b323d9e573c21639
parentab228fd3c3124d4fc4d927c91245072d8a0ec32d
git-serve: Format usage text automatically

Remove the formatting of the usage text and add code to columnize it
automatically instead.

Also, add more strict tests for the usage output. These new tests ensure
that the usage header is printed, commands are indented properly and no
overly long lines are produced.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
git-interface/git-serve.py
git-interface/test/t0002-serve.sh