-
Notifications
You must be signed in to change notification settings - Fork 34
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
diff broken: considers two files or directories as delete+add rather than modify #565
Comments
tstromberg
changed the title
diff mode broken: now considers two files/directories as add/delete rather than modify
diff broken: considers two files or directories as delete+add rather than modify
Nov 2, 2024
@egibs - any chance you can help with this? I'm confident you can fix this far better and faster than I can. |
It looks like there is at least one example where diff get's things right:
|
Some weirdness: if I use a relative path, diff works:
If I specify absolute paths, it reverts to the deleted+added bug:
|
Interesting. I'll look into this first thing tomorrow. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure when this happened (some time before v1.0.0), but I noticed that
mal diff
is basically broken. Given two directories:If I run
mal diff /tmp/old /tmp/new
, it sees it as one file deleted and another one added, rather than a single file that changed:The same happens if I use specify the files by path name:
Here is the output of v0.10.0, showing the expected behavior (except that the filename is "."):
However we fix this, we need to add a test as our diff code is really difficult to understand and fragile.
The text was updated successfully, but these errors were encountered: