gitpython-developers/GitPython — pull request #79 by znerol (2012-10-18 19:17:37+00:00)
Title: Add an output_strip kwarg to Git.execute

Strip the last line of the output if it is empty (default). Stripping should be disabled whenever it is important that the output is not modified in any way. For example when retrieving patch files using git-diff.