How to fix git log output (missing lines in less)?

后端 未结 2 1105
走了就别回头了
走了就别回头了 2021-01-18 15:08

I have two different servers each running a Ubuntu installation. On both of them, I have set env LESS=-FerX which makes sure that git log output is displayed ni

2条回答
  •  梦谈多话
    2021-01-18 16:03

    Again, I find the answer to my own question only minutes after asking.

    Turns out the problem was the -r parameter to less. It should have been a -R instead.

    From the manpage:

    -R or --RAW-CONTROL-CHARS
              Like  -r,  but  only ANSI "color" escape sequences are output in "raw" form.
              Unlike -r, the screen appearance is  maintained  correctly  in  most  cases.
    

    For some reson not known to me, the lower-case -r works fine on of the other server.

提交回复
热议问题