Summary: | Kompare does not work well with git patches | ||
---|---|---|---|
Product: | [Applications] kompare | Reporter: | Konstantin Tokarev <annulen> |
Component: | general | Assignee: | Kompare developers <kompare-devel> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | annulen |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Konstantin Tokarev
2011-07-04 16:55:02 UTC
Yes, the check for diff validity is still too strict, even after the fix for bug #249976. :-( I think it should work the next way: 1) If file is recognized as "application/mbox"? search for "diff --git" inside. If found, strip "mail" part and parse remaining diff I don't think the mail prefix is what's causing the "malformed" warning, it's some other non-diff junk, probably the git version at the end. If so, strip everything outside "---" guards: <Mail header> --- <Actual patch here> --- <git version> |