Ensure trailing newline when splitting msg and diff
commitc000b22546fdc2fc6a75e5cf361431db9c54cc06
authorPeter Grayson <pete@jpgrayson.net>
Mon, 10 Feb 2020 22:31:06 +0000 (10 17:31 -0500)
committerPeter Grayson <pete@jpgrayson.net>
Mon, 2 Mar 2020 04:22:46 +0000 (1 23:22 -0500)
treee85b1d19a6e31ec46895cb427f7f73037ba7251c
parent4b3f2513c0e9106267f14b80c38af096920aac1a
Ensure trailing newline when splitting msg and diff

When using, for example, `stg edit --diff`, all trailing whitespace would
be stripped from the commit message, including the standard trailing
newline. Ensure a single trailing newline character on the commit message.

Signed-off-by: Peter Grayson <pete@jpgrayson.net>
stgit/commands/common.py