summaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-07-01 10:20:38 -0700
committerRussell Belfer <rb@github.com>2013-07-01 10:20:38 -0700
commit278ce7468d3870bb18d69bd8177bae406d6cede4 (patch)
tree9e00f07d6d12ed41a35973f882703d1084842cbd /src/buffer.h
parentc61300eda94eedb53f072fedbf1bb52be21ca221 (diff)
downloadlibgit2-278ce7468d3870bb18d69bd8177bae406d6cede4.tar.gz
Add helpful buffer shorten function
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 5402f3827..f3e1d506f 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -91,6 +91,7 @@ int git_buf_vprintf(git_buf *buf, const char *format, va_list ap);
void git_buf_clear(git_buf *buf);
void git_buf_consume(git_buf *buf, const char *end);
void git_buf_truncate(git_buf *buf, size_t len);
+void git_buf_shorten(git_buf *buf, size_t amount);
void git_buf_rtruncate_at_char(git_buf *path, char separator);
int git_buf_join_n(git_buf *buf, char separator, int nbuf, ...);