summaryrefslogtreecommitdiff
path: root/git/exc.py
diff options
context:
space:
mode:
authorHiroki Tokunaga <tokusan441@gmail.com>2022-04-06 23:08:36 +0900
committerHiroki Tokunaga <tokusan441@gmail.com>2022-04-06 23:08:36 +0900
commite4360aea32aad11bf3c54b0dc0a6cabb21b5e687 (patch)
tree5d8092a2fbfeef22e70953ed70753ff4bb603435 /git/exc.py
parent0b33576f8e7add5671f8927dff228e7f92eec076 (diff)
downloadgitpython-e4360aea32aad11bf3c54b0dc0a6cabb21b5e687.tar.gz
feat(cmd): add the `strip_newline` flag
This commit adds the `strip_newline` flag to the `Git.execute` method. When this flag is set to `True`, it will trim the trailing `\n`. The default value is `True` for backward compatibility. Setting it to `False` is helpful for, e.g., the `git show` output, especially with the binary file, as the missing `\n` may invalidate the file.
Diffstat (limited to 'git/exc.py')
0 files changed, 0 insertions, 0 deletions