-
Notifications
You must be signed in to change notification settings - Fork 330
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
Improper handling of whitespace-only lines with markEmptyLines set to true #385
Comments
Not sure if it's a different issue or not, but my case is:
# rm -rf b
mkdir b
cd b
git init
# create a file with a space on a second line
echo 'a
b' > f
git add f
git commit -m a
# remove the space
echo 'a
b' > f
sed -Ei 's/ //' f
git diff
The way it looks like with Without:
I'd say it looks like a line was added, instead of a line was stripped of spaces. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The colors in the diff are either not showing up, or are completely wrong / misleading.
Repro steps:
This makes removing redundant whitespace from blank lines, common in older Python codebases, painful.
The text was updated successfully, but these errors were encountered: