tig icon indicating copy to clipboard operation
tig copied to clipboard

The tig cannot display the space style of eol

Open griffinqiu opened this issue 9 years ago • 6 comments

I could see the special style of the space of eol in git diff. However, I could not see the style in tig. Even I use W switch all modes.

griffinqiu avatar Dec 04 '16 04:12 griffinqiu

Did you try putting this in ~/.tigrc?

set ignore-space = at-eol

jonas avatar Dec 09 '16 05:12 jonas

screen shot 2017-01-14 at 20 35 25 screen shot 2017-01-14 at 20 35 44

@jonas I just want to have the style eol in tig. Please see the images for more details.

griffinqiu avatar Jan 14 '17 12:01 griffinqiu

Ah, I misunderstood. Tig doesn't seem support highlighting space at EOL.

jonas avatar Jan 14 '17 13:01 jonas

As I can understand, we talk about the same feature image #573

ocoka avatar Mar 06 '17 12:03 ocoka

This is partially supported since version 2.2.2 with set diff-highlight = true

screen shot 2017-07-09 at 10 49 31 pm

More configurable support would require to switch the diff view to --word-diff=porcelain (#221).

jonas avatar Jul 10 '17 02:07 jonas

It seems that tig also not highlight while git support core.whitespace=tab-in-indent even if use git version 2.2.2 with set diff-highlight = true.

left is git show, right is tig show at blew image:

WeChat1d799d3271d5b8e01bdccf1fda3c4705

liming01 avatar Dec 06 '24 16:12 liming01