git: add hidden --list-builtins option
commit8893fd95b66cbd6566136a289dd05fcf4e547281
authorJeff King <peff@peff.net>
Tue, 30 May 2017 05:18:43 +0000 (30 01:18 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Jun 2017 02:43:33 +0000 (5 11:43 +0900)
tree959ab578b7ca9279db1fe96d7bc59bdada519ea1
parentb48cbfc5e6112952bc3be4dea0208bc5e1f331eb
git: add hidden --list-builtins option

It can be useful in the test suite to be able to iterate
over the list of builtins. We could do this with some
Makefile magic. But since the authoritative list is in the
commands array inside git.c, and since this could also be
handy for debugging, let's add a hidden command-line option
to dump that list.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git.c