Bug 237561
Summary: | [PATCH] gendiff doesn't emit unified diff headers | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ville Skyttä <ville.skytta> | ||||
Component: | rpm | Assignee: | Paul Nasrat <nobody+pnasrat> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | Keywords: | Patch | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-05-17 10:07:56 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Ville Skyttä
2007-04-23 19:37:18 UTC
Created attachment 153308 [details]
Emit unified diff headers for compatibility
Do you have an example of the different behavior? Without encyclopaedic knowledge of diff, I find it hard to tell what the changed output would look like. There are also reasons to avoid bash-isms for portability of gendiff. Which bashisms does the patch in comment 1 introduce? That wasn't intentional. The unified diff headers added by the patch are the "diff ..." lines before each hunk as seen when comparing eg. these: http://koti.welho.com/vskytta/gendiff-before.patch http://koti.welho.com/vskytta/gendiff-after.patch According to my experience, it doesn't really matter exactly what the line between hunks contains as long as it doesn't start with a space, plus or minus (and IIRC eg. GNU Arch generates empty lines there), but this patch mimicks what "diff -r ..." adds itself. My tired old eyes say thanks! for the examples. So diff-mode.el wants an echo of the diff command that was run, easy enuf, can/will do. The bash-isms are not from your patch, apologies for muttering offhandedly. Too many diff's, so much uglix, and gendiff is just a 21 line loop with a man page. Commited to rpm.org tree, will be in next release. Thanks for the patch |