Is there any way to do word diff (ex: --color-words)? #3415
-
When I use the side by side (or inline) diff tool in lazy git, it shows giant green or red blobs for changes that are simply me putting code inside a function. In VSCode, the diff shows as me just adding the function name at the top and a curly brace at the bottom but anything in between is simply white because it didn't change (if I'm just wrapping my code in a function). However, lazygit shows a giant red block as if I deleted all that code and then a giant green blob of all that same code with the function name added to the top. In git diff I can do --color-words and it makes the diff much more readable, but I prefer the UI of lazygit. Is there any way I can make the lazygit diff perform this way so I can get meaningful diffs? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You could try if pressing ctrl-w (to turn "ignore whitespace" mode on) improves it. |
Beta Was this translation helpful? Give feedback.
You could try if pressing ctrl-w (to turn "ignore whitespace" mode on) improves it.