-
Notifications
You must be signed in to change notification settings - Fork 335
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
dfs skips copied files with diff.renames=copies #349
Comments
Can you explain |
@scottchiefbaker this setting tells git how to display renamed (same or similar content, new name, old file is missing) and copied (same or similar content, new name, old file present) files. By default git only detects renames, any copy is shown as new file. To illustrate this one can create dummy repository as
After that copy and stage (or commit) some file:
And inspect this change:
I hope this narrowed down example helps better than original ones. |
Yeesh... that's a cool git feature, but it would probably be a nightmare for d-s-f to support this. d-s-f works line by line, and we'd have to see the |
Wouldn't the handling be the same as for rename, it looks the same just s/rename/copy/g?
|
I have
git config diff.renames copies
set and having an issue withdfs
skipping copied file ingit show
. I'll try to explain it with examples.Without paging through dfs: deluge_plain.txt
Processed with dfs: deluge_fancy.txt
Here is also output with default value
diff.renames true
:deluge_plain_wo_copies.txt
deluge_fancy_wo_copies.txt
In plain git diff you can notice that
deluge-1.3.15-r3.exheres-0
was copied todeluge-2.0.3.exheres-0
and then renamed todeluge-scm.exheres-0
. However, fancy output shows only rename.With default
diff.renames
valuedfs
output is consistent with plain output: one file renamed and other is "new" (but it's not, this is literal copy of1.5.3
file).The text was updated successfully, but these errors were encountered: