builtin rebase: show progress when connected to a terminal
[gitweb.git] / strbuf.h
index 60a35aef165ca1a1bdc20b005751ea70e3c49ee0..b7aea8a9660160af9edf244fc0626009374b98c3 100644 (file)
--- a/strbuf.h
+++ b/strbuf.h
@@ -190,6 +190,9 @@ extern void strbuf_ltrim(struct strbuf *);
 /* Strip trailing directory separators */
 extern void strbuf_trim_trailing_dir_sep(struct strbuf *);
 
+/* Strip trailing LF or CR/LF */
+extern 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.