-
-
Notifications
You must be signed in to change notification settings - Fork 573
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
A blank removed line is not shown as changed when it is replaced by another line #1359
Comments
This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
Ping |
Would just like to second this issue with another example: git diff: diff --git a/controller/DC10/Lib/Rabbit4000/RS232.LIB b/controller/DC10/Lib/Rabbit4000/RS232.LIB
index cab9f5d..bba9dc1 100644
--- a/controller/DC10/Lib/Rabbit4000/RS232.LIB
+++ b/controller/DC10/Lib/Rabbit4000/RS232.LIB
@@ -4891,12 +4891,11 @@ spx_isr::
ld hl, lxpc
push hl
-
+#if defined(SER_INSTRUMENT)
ld hl, (ser_isrs)
inc hl
ld (ser_isrs), hl
-
-
+#endif
; IX = serXdata, IY = SxDR
ioi ld a, (iy+SxSR_OFS) Software versiongitui 0.22.1 (234e7cb) Operating systemWindows 6.2.9200 Compile time information
Environment variablesSHELL=<not set>
EDITOR=<not set>
GIT_EDITOR=<not set>
VISUAL=<not set> Command-line"C:\Program Files\gitui\bin\gitui.exe" --bugreport newlines Using powershell 7 in windows terminal |
We could also fill in a minus-char to visualize the empty line being removed 👍 |
A blank removed line is not shown as changed when it is replaced by another line.
To Reproduce
Execute the following block to setup the example:
The
git diff
shows how it should look like.Now execute
gitui
to see the wrong diff view for example.txt.The
gitui
doesn't show the removed line as changed before the newbbb
lineExpected behavior
The diff of gitui and git diff should be identical.
Thank you very much for this awesome tool.
Software version
gitui 0.21.0
Operating system
macOS 12.6 (Darwin 21.6.0)
Compile time information
Environment variables
Command-line
The text was updated successfully, but these errors were encountered: