git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: A typesetting problem with git man pages

From
TLTeemu Likonen <tlikonen@iki.fi>
Date
Oct 31, 2008, 07:37 UTC
Message-ID
<8763n9tduo.fsf@iki.fi>
In-Reply-To
<2c6b72b30810291235j554cc21dw4e3da4fdbfe633ee@mail.gmail.com>
Jonas Fonseca (2008-10-29 20:35 +0100) wrote:
Show 16 quoted lines
> On Wed, Oct 29, 2008 at 20:16, Teemu Likonen <tlikonen@iki.fi> wrote:
>> 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
    ------------
Previous: Kalle Olavi NiemitaloNext: Teemu Likonen
Message 9 of 12 in “A typesetting problem with git man pages”
  1. Teemu LikonenOct 29, 2008
  2. Jonas FonsecaOct 29, 2008
  3. Teemu LikonenOct 29, 2008
  4. asciidoc: add minor workaround to add an empty line after code blocksJonas Fonseca, Oct 30, 2008
  5. Teemu LikonenOct 30, 2008
  6. Junio C HamanoNov 1, 2008
  7. Thomas AdamNov 1, 2008
  8. Kalle Olavi NiemitaloNov 3, 2008
  9. Teemu LikonenOct 31, 2008
  10. Teemu LikonenOct 31, 2008
  11. Jeff KingOct 29, 2008
  12. Jonas FonsecaOct 29, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.