diff options
author | 2021-01-12 13:26:49 +0100 | |
---|---|---|
committer | 2021-01-12 12:03:18 -0800 | |
commit | 13c44953fb0b396d3594b4a712f956ab3a48169e (patch) | |
tree | 1f6c689e4bd4b6cd574b1ea767ed57119caca4ea /t/t6040-tracking-info.sh | |
parent | config: add new way to pass config via `--config-env` (diff) | |
download | tgif-13c44953fb0b396d3594b4a712f956ab3a48169e.tar.xz |
quote: make sq_dequote_step() a public function
We provide a function for dequoting an entire string, as well as one for
handling a space-separated list of quoted strings. But there's no way
for a caller to parse a string like 'foo'='bar', even though it is easy
to generate one using sq_quote_buf() or similar.
Let's make the single-step function available to callers outside of
quote.c. Note that we do need to adjust its implementation slightly: it
insists on seeing whitespace between items, and we'd like to be more
flexible than that. Since it only has a single caller, we can move that
check (and slurping up any extra whitespace) into that caller.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6040-tracking-info.sh')
0 files changed, 0 insertions, 0 deletions