Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to apply git diff --color-words HEAD | less -r in tig diff window #1117

Closed
avatar-lavventura opened this issue Jun 12, 2021 · 4 comments
Closed

Comments

@avatar-lavventura
Copy link

avatar-lavventura commented Jun 12, 2021

In diff window; if possible I want to apply git diff --color-words HEAD | less -r`` instead of git diff`, how can I achieve it?

The difference could be seens as below, where only the added character shown:

On linux terminal: $ git diff --ignore-blank-lines --color-words HEAD | less -r
diff --git abrokerDriver py bbrokerDriver py

On tig:

1 file changed, 1 insertion(+), 1 deletion(-)


I have tried TIG_DIFF_OPTS="--ignore-blank-lines --color-words" tig, or TIG_DIFF_OPTS='--ignore-blank-lines --color-words' tig --word-diff=plain, which did not work properly. Example output:

image


I think this issue is considered as feature (#47) and still in progress.

@avatar-lavventura avatar-lavventura changed the title How to apply git diff --ignore-blank-lines --color-words HEAD | less -r in tig diff window How to apply git diff --color-words HEAD | less -r in tig diff window Jun 12, 2021
@krobelus
Copy link
Contributor

Duplicate of #47

@avatar-lavventura
Copy link
Author

It is a duplicated issue since 2012, seems like it is abandoned.

@koutcher
Copy link
Collaborator

There might be hope with #1140.

@avatar-lavventura
Copy link
Author

@koutcher Looking forward to seeing this awesome merge, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants