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
Crash when generating patch for multiple files and a file only on one side #252
Comments
Fixed by commit 8ef3d8e Thank you for the report. The latest CI build artifacts are available at: |
Thanks, it does no longer crash with the patch. The generated patch in unified style is not quite as I expected though: --- a.txt Fri Jan 10 14:23:29 2020
+++ a.txt Fri Jan 10 14:23:29 2020
--- b.txt Thu Jan 1 01:00:00 1970
+++ b.txt Fri Jan 10 14:23:29 2020
@@ -0,0 +1 @@
+test
\ No newline at end of file Git itself gives me this for a commit which transitions a folder from "state" diff --git b.txt b.txt
new file mode 100644
index 0000000..30d74d2
--- /dev/null
+++ b.txt
@@ -0,0 +1 @@
+test
\ No newline at end of file The first three lines are git-specific, but what I find confusing about the WinMerge patch is that it seems to include |
Sorry for the slow response. The current WinMerge diff output mimics the 'diff -N' option. |
WinMerge v2.16.4.0 32 bit / WinMerge v2.16.5.0 64-bit (pre-release) under Windows 10 64-bit
File structure to reproduce the crash:
Demo files: winmerge_patch_crash.zip
Drag both folders onto WinMerge and select them
Click Tools > Generate Patch and set a result path
The other options don't matter, but make sure not to change the default [2 files selected]
Click OK and wait. Crash occurs.
The reason seems to be that it tries to compare in pairs, but doesn't check whether the file exists in both directories.
The text was updated successfully, but these errors were encountered: