-
Notifications
You must be signed in to change notification settings - Fork 405
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
🚀 Display percentage similarity for renamed and copied files #406
Comments
This currently gets swallowed for files that have been moved, making them very hard to miss from diffs. For example, here, at a glance, it seems that there's only a single change on-screen: The raw output does include a reference though:
Passing |
I have to admit I'm not quite seeing the value -- but I'm sure it's me being dense/lazy since someone has gone to the trouble of adding the feature to git! If it's 100% then there's no diff to show, so I'm not sure what value there is in showing the 100% here: And if it's <100% then there's a diff, so that will be highly visible. Would someone mind explaining how this feature is used? |
The file change location in these cases, but the change does not stand out. All the orange content is (as seen in the screenshot) metadata about changes. So while skimming trying to see changes in a log, file moves don't stand out and are easy to omit.
|
It's nice for false positives: delete one file, write another file, have Git show it as a rename+diff, get confused ("why does git think this is a move?! did I do something wrong? ..."), notice "51% similar" ("on that's why. well, okay then I guess"). |
Note that git allows us to change the similarity threshold when looking at logs/diffs, so knowing the degree of similarity of existing matches can help us know what to set that parameter to if we want to adjust what it dispays as a rename, etc. |
Oh, big reason! We don't always see the diff with a rename. Sometimes people use I personally have done this with |
See #392. cc @phil-blain
#392 (comment)
The text was updated successfully, but these errors were encountered: