help: use HTML as the default help format on Windows
commit1cc8af044cad37b5f7df85b177f6aa979aa3215a
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 6 Jun 2012 20:28:16 +0000 (6 20:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jun 2012 21:14:13 +0000 (6 14:14 -0700)
tree4298baf6dde05d6f441c1ffb847d486f9fbdf272
parentbefc5ed3799cb6fcbaa7de03e7fa1760e846853c
help: use HTML as the default help format on Windows

When 'git help $cmd' is run without a format option (e.g. -w), the
'man' format is always used. On some platforms, however, manual page
viewers are not often available.

Introduce DEFAULT_HELP_FORMAT make variable in order to allow the
default format configurable at compile time, and set it to HTML when
compiling on Windows (but not Cygwin).

Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Vincent van Ravesteijn <vfr@lyx.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
builtin/help.c