-
Notifications
You must be signed in to change notification settings - Fork 37
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 between two relative path files still shows up as deleted+added #599
Comments
I think this comes down to the added/removed logic. The first file will be stored in the map with the key Using the diff example above:
Here's where we store the relative path in the map: Line 60 in 29fb875
The lookup in Lines 128 to 132 in 624befe
The lookup in Lines 126 to 130 in 29fb875
|
If I store the value of
Do we want to go this route? Two files of different types with the same name (sans extension) would show odd behavior drift but maybe we want that? Conversely, two files with different names may be the same underlying file and the diff would show as deleted/added when it would be more appropriate to show as changed. |
FWIW, like diff(1), the file name shouldn't matter at all if two filenames are being passed into it. Filename logic only happens when directories are passed in. |
I mentioned relative paths in the initial bug report, but this happens for absolute paths too:
|
Ah okay, this clarifies things. I'll hack on that tomorrow. |
Addressed via #628. |
I think we still have our logic a bit off if you are passing two filenames as arguments:
similar to the
diff(1)
command, this should show up as a single changed file.The text was updated successfully, but these errors were encountered: