Code

pack-protocol.txt: fix pkt-line lengths
[git.git] / Documentation / technical / api-strbuf.txt
index 3b1da10f263dad08ad327d678da9ada32c83599f..afe27599511c5f6bab6e4f799fd18e7d83bdd454 100644 (file)
@@ -218,6 +218,13 @@ which can be used by the programmer of the callback as she sees fit.
        placeholder and replacement string.  The array needs to be
        terminated by an entry with placeholder set to NULL.
 
+`strbuf_addbuf_percentquote`::
+
+       Append the contents of one strbuf to another, quoting any
+       percent signs ("%") into double-percents ("%%") in the
+       destination. This is useful for literal data to be fed to either
+       strbuf_expand or to the *printf family of functions.
+
 `strbuf_addf`::
 
        Add a formatted string to the buffer.