pq: properly generate non-ascii patch files
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 8 May 2013 07:01:54 +0000 (10:01 +0300)
committerGuido Günther <agx@sigxcpu.org>
Thu, 31 Oct 2013 18:17:21 +0000 (19:17 +0100)
commita0d6eb7da045c5bc28bc0f2f6350aea4a0608d3f
tree8abeb1b59fcb7a54e2d5516fb5e0bfd2f9a5875b
parent017fac39f6bd87d44a94d2cf46474e4ded721432
pq: properly generate non-ascii patch files

Encode non-ascii email headers properly. Also, set MIME headers
correctly for the message body if the commit message body contains
non-ascii characters.

The reason for constructing the message in a little bit "clumsy" way is
the intention is to match the output of git-format-patch as closely as
possible.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/scripts/common/pq.py