-
Notifications
You must be signed in to change notification settings - Fork 406
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
🐛 --word-diff causes unpredictable behaviour #1957
Comments
I am not sure this is a
Is this what you want:
? |
Btw, I haven't observed the unpredictable behavior you mentioned, I tested with your command: |
Yes, piping to In my opinion, there is still clearly a race condition in the pipe handling when the intermediate pipe is not in place. Regardless of whether this stems from a bug on the
I'm not sure what you mean, sorry, can you clarify? Piping this to
Thanks for testing! Since it is a race condition, I imagine this is either due to your computer being faster or slower than mine. That being said, I'm observing this issue on Here's a video of the 2025-02-12.09-18-26.mp4 |
When
git show
orgit diff
is used with the--word-diff
option, then piped intodelta
, the resulting output is often not highlighted correctly.The issue seems to occur with any possible value of
--word-diff
. Oddly, it even occurs when--word-diff=plain
is used, which should be equivalent to omitting the option, according to the documentation.When the option is omitted, the output seems to always be highlighted correctly.
intermittently incorrect output when
--word-diff=<...>
is used:reliably correct output when
--word-diff=<...>
is not used:There is obviously some sort of race condition here but unfortunately I do not have the time to investigate at the moment.
Found this bug while trying to address jonas/tig#1298 (comment)
The text was updated successfully, but these errors were encountered: