-
Notifications
You must be signed in to change notification settings - Fork 394
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
🚀 delta does not recognize Git's copy detection #392
Comments
Hi @phil-blain, thanks for this, I didn't know about the feature. |
This is fixed in master (not released yet). It's going to look like below (with the unicode arrow for consistency with the "rename" case). In case you'd prefer a text label other than (I wonder why I needed |
Hi @dandavison ! I really admire your responsiveness! I tested by building delta from I also have to add I did not think of it on Friday, but delta would be even more excellent if the similarity index (in percent) was indicated in parenthesis on the header line, for both renamed and copied files, something like this:
A final note, I noticed that the Linux binary release linked from the Installation section of the README links to the tarball for the Cheers! |
This is released now (v0.4.5). |
Git has special flags and configuration variables for
git log
,git show
,git diff
,git diff-tree
,git diff-index
,git diff-tree
, andgit format-patch
to detect copies as well as renames.These add "copy from"/"copy to" lines in the diff header when Git detects a new file is in fact copied from an existing file. Currently delta shows these as renames, which is confusing. It would be nice if they would show up correctly as copies.
An example from the same issue for diff-so-fancy:
Relevant parts of the Git documentation:
-C
option for diff, show, log, etc.diff.renames
configuration for diff, show, logThe text was updated successfully, but these errors were encountered: