gitui
gitui copied to clipboard
A blank removed line is not shown as changed when it is replaced by another line
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:
export TEST_REPO=/tmp/test-repo
mkdir -p ${TEST_REPO}
pushd ${TEST_REPO}
git init
printf "###\n\naaa\n\n\n###\n" > example.txt
git add .
git commit -a -m "initial commit"
printf "###\n\naaa\nbbb\n\n###\n" > example.txt
git diff
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 new bbb line
Expected 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
- Profile: release
- Target triple: aarch64-apple-darwin
- Family: unix
- OS: macos
- Architecture: aarch64
- Pointer width: 64
- Endian: little
- CPU features: aes,crc,dit,dotprod,dpb,dpb2,fcma,fhm,flagm,fp16,frintts,jsconv,lor,lse,neon,paca,pacg,pan,pmuv3,ras,rcpc,rcpc2,rdm,sb,sha2,sha3,ssbs,vh
- Host: aarch64-apple-darwin
Environment variables
SHELL=/bin/zsh
EDITOR=<not set>
GIT_EDITOR=<not set>
VISUAL=<not set>
Command-line
gitui --bugreport