https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218018

            Bug ID: 218018
           Summary: BSD diff ignores original file mtime
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: needs-patch
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Porter's Handbook encourages contributors to format patches via "make
makepatch" but with BSD diff there's an unnecessary noise due to timestamps
always shifting.

$ touch -d 2015-01-01T00:00:00 foo bar
$ echo test >bar

$ diff -u foo bar
--- foo 2017-03-22 20:04:08.000000000 +0000
+++ bar 2017-03-22 20:04:08.000000000 +0000
@@ -0,0 +1 @@
+test

$ gnudiff -u foo bar
--- foo 2015-01-01 00:00:00.000000000 +0000
+++ bar 2017-03-22 20:04:08.592672489 +0000
@@ -0,0 +1 @@
+test

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to