1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-01 06:47:52 +01:00
git/Documentation/technical
Jeff King 0a0416a34a strbuf_expand: convert "%%" to "%"
The only way to safely quote arbitrary text in a pretty-print user
format is to replace instances of "%" with "%x25". This is slightly
unreadable, and many users would expect "%%" to produce a single
"%", as that is what printf format specifiers do.

This patch converts "%%" to "%" for all users of strbuf_expand():

 (1) git-daemon interpolated paths

 (2) pretty-print user formats

 (3) merge driver command lines

Case (1) was already doing the conversion itself outside of
strbuf_expand(). Case (2) is the intended beneficiary of this patch.
Case (3) users probably won't notice, but as this is user-facing
behavior, consistently providing the quoting mechanism makes sense.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2010-01-14 09:24:42 -08:00
..
.gitignore
api-allocation-growing.txt
api-builtin.txt Documentation: fix a grammatical error in api-builtin.txt 2009-04-27 09:36:40 -07:00
api-decorate.txt
api-diff.txt
api-directory-listing.txt
api-gitattributes.txt
api-grep.txt
api-hash.txt technical-docs: document hash API 2009-12-17 21:54:50 -08:00
api-history-graph.txt Documentation: undocument gc'd function graph_release() 2009-11-19 23:05:17 -08:00
api-in-core-index.txt
api-index-skel.txt
api-index.sh
api-lockfile.txt
api-object-access.txt
api-parse-options.txt parse-opts: add OPT_FILENAME and transition builtins 2009-05-25 01:07:33 -07:00
api-quote.txt
api-remote.txt technical/api-remote: Describe new struct remote member pushurl 2009-06-09 23:46:47 -07:00
api-revision-walking.txt
api-run-command.txt api-run-command.txt: describe error behavior of run_command functions 2009-08-08 13:51:25 -07:00
api-setup.txt
api-strbuf.txt strbuf_expand: convert "%%" to "%" 2010-01-14 09:24:42 -08:00
api-string-list.txt Fix two leftovers from path_list->string_list 2008-07-22 15:28:22 -07:00
api-tree-walking.txt technical-docs: document tree-walking API 2009-08-03 22:42:14 -07:00
api-xdiff-interface.txt
pack-format.txt
pack-heuristics.txt
pack-protocol.txt Update packfile transfer protocol documentation 2009-11-13 12:07:21 -08:00
protocol-capabilities.txt Update packfile transfer protocol documentation 2009-11-13 12:07:21 -08:00
protocol-common.txt Update packfile transfer protocol documentation 2009-11-13 12:07:21 -08:00
racy-git.txt racy-git.txt: explain nsec problem in more detail 2009-10-09 14:56:32 -07:00
send-pack-pipeline.txt
shallow.txt
trivial-merge.txt