diff2html-cli icon indicating copy to clipboard operation
diff2html-cli copied to clipboard

Do not show "renamed" for files when comparing two folders

Open this-username-has-been-taken opened this issue 8 months ago • 0 comments

Hello!

I use diff command to compare files in two folders (e.x. diff -r "documentation/public" "compare_repo/documentation/public" -u -X - > public.diff || true). If I generate a report using diff2html-cli for the public.diff result the report will always show that the files has been renamed because their patch is different. But that's OK - their patch will always be different because I am comparing different folders. For more information please refer to the screenshot below:

Image

My suggestion is to add an option to (partialy) ignore patch difference for compared files.