Re: A typesetting problem with git man pages
From: Teemu Likonen <hidden>
Date: 2016-06-15 22:45:33
Jonas Fonseca (2008-10-29 20:35 +0100) wrote:
On Wed, Oct 29, 2008 at 20:16, Teemu Likonen [off-list ref] wrote:quoted
Does anybody know why "man" prints those ".ft" commands? The corresponding code in git-log.1 file is this: \&.ft C [i18n] commitencoding = ISO\-8859\-1 \&.ft Recently I upgraded my system from Debian 4.0 (Etch) to 5.0 (Lenny) and it is possible that some tools which are related to compiling the man pages are now newer versions.I had a similar problem after upgrading on Ubuntu and came up with a patch to optionally disable some of asciidoc.conf (commit 7f55cf451c9e7). Try putting DOCBOOK_XSL_172=Yes in your config.mak.
Alas, there are still problems - or at least I have. Let's look at the
"git checkout" manual page and its output in the "EXAMPLES" section:
$ git checkout master âfB(1)âfR
$ git checkout master~2 Makefile âfB(2)âfR
$ rm -f hello.c
$ git checkout hello.c âfB(3)âfR
â
âfB1. âfRswitch branch â
âfB2. âfRtake out a file out of other commit â
âfB3. âfRrestore hello.c from HEAD of current branch
If you have an unfortunate branch that is named hello.c, this step
would be confused as an instruction to switch to that branch. You
should instead write:
$ git checkout -- hello.c
â
.RE
2. After working in a wrong branch, switching to the correct branch
would be done using:
$ git checkout mytopic
The corresponding code in the git-checkout.txt file:
------------
$ git checkout master <1>
$ git checkout master~2 Makefile <2>
$ rm -f hello.c
$ git checkout hello.c <3>
------------
+
<1> switch branch
<2> take out a file out of other commit
<3> restore hello.c from HEAD of current branch
+
If you have an unfortunate branch that is named `hello.c`, this
step would be confused as an instruction to switch to that branch.
You should instead write:
+
------------
$ git checkout -- hello.c
------------
. After working in a wrong branch, switching to the correct
branch would be done using:
+
------------
$ git checkout mytopic
------------