Patch generator: how to get complete path name in diff?

Open discussion about WinMerge.

Patch generator: how to get complete path name in diff?

Postby geertvc » Tue Jul 28, 2009 11:10 am

Hi,

I see there's a difference in patch generation when you compare files compared to when you compare directories.

When comparing individual files and generating a patch, then the diff lines contain the full path of the files. However, when comparing directories and then selecting one or more files to generate a patch, only part of the path is shown.

Example when comparing individual files (here, you see the full path):

Code: Select all
diff U3 I:/myatheros/2.0.0/rc1.1/buildoutput_20090716_103111.txt I:/myatheros/2.0.0/rc1.1/buildoutput_20090716_111039.txt
--- I:/myatheros/2.0.0/rc1.1/buildoutput_20090716_103111.txt   Thu Jul 16 10:31:44 2009
+++ I:/myatheros/2.0.0/rc1.1/buildoutput_20090716_111039.txt   Thu Jul 16 11:13:21 2009
@@ -1,92 +1,424 @@
.
.
.

Example when comparing directories (here, you don't see the full path...):

Code: Select all
diff U3 build/linux/Makefile build/linux/Makefile
--- build/linux/Makefile   Thu Jan 15 10:14:12 1970
+++ build/linux/Makefile   Thu Jan 15 10:14:12 1970
@@ -4,12 +4,15 @@


1. any idea why there's a difference?
2. how can I get the full path also when comparing directories?

Best rgds,

--Geert
geertvc
 
Posts: 2
Joined: Tue Jul 28, 2009 10:36 am

Return to Open Discussion

Who is online

Users browsing this forum: Google [Bot] and 13 guests

cron