diff of added files shouldn't show /dev/null
Bug #43033 reported by
Martin Pool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
James Henstridge |
Bug Description
For added files, bzr shows a diff from /dev/null to the new file name; this is somewhat different to what "diff -Nur" and "svn diff" does. It confuses diffstat. It may be better to just diff against the same name.
For patch to correctly add or remove the file it may be necessary to show a date of the epoch?
See https:/
Changed in bzr: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
From the patch man page:
Conversely, you can remove a file by sending out a context diff that compares the file to be deleted with an empty file dated the Epoch. The file will be removed unless patch is conforming to POSIX and the -E or --remove- empty-files option is not given. An easy way to generate patches that create and remove files is to use GNU diff’s -N or --new-file option.
So in normal operation the date would need to be the epoch for patch to remove the file if it isn't being compared against /dev/null