summaryrefslogtreecommitdiff
path: root/Documentation/technical
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-05-22 09:30:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-05-27 16:59:21 (GMT)
commitd4241f52d1a19bf464d63cbc4cd67fcc6a3af01d (patch)
tree470748d39f2a7747f0b892a38cf374c55b4b3e6f /Documentation/technical
parente31316263af98c4583be39b469f3152a23eba91d (diff)
downloadgit-d4241f52d1a19bf464d63cbc4cd67fcc6a3af01d.zip
git-d4241f52d1a19bf464d63cbc4cd67fcc6a3af01d.tar.gz
git-d4241f52d1a19bf464d63cbc4cd67fcc6a3af01d.tar.bz2
strbuf: add strbuf_reencode helper
This is a convenience wrapper around `reencode_string_len` and `strbuf_attach`. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical')
-rw-r--r--Documentation/technical/api-strbuf.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/technical/api-strbuf.txt b/Documentation/technical/api-strbuf.txt
index 3350d97..9d28b03 100644
--- a/Documentation/technical/api-strbuf.txt
+++ b/Documentation/technical/api-strbuf.txt
@@ -125,6 +125,11 @@ Functions
Strip whitespace from the end of a string.
+`strbuf_reencode`::
+
+ Replace the contents of the strbuf with a reencoded form. Returns -1
+ on error, 0 on success.
+
`strbuf_cmp`::
Compare two buffers. Returns an integer less than, equal to, or greater