summaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-09-19 11:38:39 -0700
committerJunio C Hamano <gitster@pobox.com>2014-09-19 11:38:39 -0700
commit56feed1c7641bbf7920efe6607c6a04309073baa (patch)
tree74ec5c25bd752dfe55be3a4c13147af5c5dfbfc1 /strbuf.h
parent9ee9c9d068d841908c7022aad566096be8a439a9 (diff)
parent415792edf51b2f87a58a942016a24a2e86a4218b (diff)
downloadgit-56feed1c7641bbf7920efe6607c6a04309073baa.tar.gz
Merge branch 'rs/export-strbuf-addchars'
Code clean-up. * rs/export-strbuf-addchars: strbuf: use strbuf_addchars() for adding a char multiple times strbuf: export strbuf_addchars()
Diffstat (limited to 'strbuf.h')
-rw-r--r--strbuf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/strbuf.h b/strbuf.h
index 7bdc1da507..652b6c432b 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -138,6 +138,7 @@ static inline void strbuf_addbuf(struct strbuf *sb, const struct strbuf *sb2)
strbuf_add(sb, sb2->buf, sb2->len);
}
extern void strbuf_adddup(struct strbuf *sb, size_t pos, size_t len);
+extern void strbuf_addchars(struct strbuf *sb, int c, size_t n);
typedef size_t (*expand_fn_t) (struct strbuf *sb, const char *placeholder, void *context);
extern void strbuf_expand(struct strbuf *sb, const char *format, expand_fn_t fn, void *context);