]> git.ipfire.org Git - thirdparty/git.git/blobdiff - strbuf.h
Merge branch 'pk/rebase-in-c-3-acts'
[thirdparty/git.git] / strbuf.h
index 9981f782b2573c1a4360879e03884ec753999aec..fc40873b65124fc98a2e06150b7c8043f05ed4ab 100644 (file)
--- a/strbuf.h
+++ b/strbuf.h
@@ -190,6 +190,9 @@ void strbuf_ltrim(struct strbuf *sb);
 /* Strip trailing directory separators */
 void strbuf_trim_trailing_dir_sep(struct strbuf *sb);
 
+/* Strip trailing LF or CR/LF */
+void strbuf_trim_trailing_newline(struct strbuf *sb);
+
 /**
  * Replace the contents of the strbuf with a reencoded form.  Returns -1
  * on error, 0 on success.