add function to print a single line, ignoring \r and \n
authorHiltjo Posthuma <hiltjo@codemadness.org>
Thu, 25 Mar 2021 17:13:13 +0000 (18:13 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Thu, 25 Mar 2021 17:13:13 +0000 (18:13 +0100)
commit295e4b8cb95114bb74b582c7332bc4c171f36dd3
treedb5aa2e65b47071855703031dcc1b5ade83c75a9
parent995f7d5c5d8e396b06e70b1497ac96df63ffec36
add function to print a single line, ignoring \r and \n

This can happen when there is no newline at end of file in the diff which is
served by libgit2 as:

"\n\ No newline at end of file\n".
stagit.c