Reworked newline handling.
Reworked newline handling.

Write the newline before the output from git except for the first line of output.
Also cleaned up the related code a bit.

Fixes #5

archpoint/gitwrap