Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2017 20:10:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 218018] BSD diff ignores original file mtime
Message-ID:  <bug-218018-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218018

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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218018-8>