doc-diff: fix non-portable 'man' invocation
commit83d4b5ff29ee4a67e1a7269de5c9ec913a467bef
authorEric Sunshine <sunshine@sunshineco.com>
Fri, 31 Aug 2018 06:33:16 +0000 (31 02:33 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 31 Aug 2018 18:49:49 +0000 (31 11:49 -0700)
treeb87e3798710493737afb6ef66e2556eccc258ed0
parent27064fb7fb82d607f3e2ccc5e9c93e0161bae134
doc-diff: fix non-portable 'man' invocation

doc-diff invokes 'man' with the -l option to force "local" mode,
however, neither MacOS nor FreeBSD recognize this option. On those
platforms, if the argument to 'man' contains a slash, it is
automatically interpreted as a file specification, so a "local"-like
mode is not needed. And, it turns out, 'man' which does support -l
falls back to enabling -l automatically if it can't otherwise find a
manual entry corresponding to the argument. Since doc-diff always
passes an absolute path of the nroff source file to 'man', the -l
option kicks in anyhow, despite not being specified explicitly.
Therefore, make the invocation portable to the various platforms by
simply dropping -l.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/doc-diff