[Bug 218018] BSD diff ignores original file mtime

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Mar 22 20:10:24 UTC 2017


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: freebsd-bugs at FreeBSD.org
          Reporter: jbeich at FreeBSD.org
                CC: bapt at FreeBSD.org

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.


More information about the freebsd-bugs mailing list