diff options
author | 2015-02-15 19:33:52 +0100 | |
---|---|---|
committer | 2015-02-17 13:40:49 -0800 | |
commit | dc8edc8f7d503b96dc4ceb275f7f6ca7637be5a9 (patch) | |
tree | e82cbd6028cabce7a06e05934575a447e41430c0 /t/t9300-fast-import.sh | |
parent | daemon: look up client-supplied hostname lazily (diff) | |
download | tgif-dc8edc8f7d503b96dc4ceb275f7f6ca7637be5a9.tar.xz |
daemon: use callback to build interpolated path
Provide a callback function for strbuf_expand() instead of using the
helper strbuf_expand_dict_cb(). While the resulting code is longer, it
only looks up the canonical hostname and IP address if at least one of
the placeholders %CH and %IP are used with --interpolated-path.
Use a struct for passing the directory to the callback function instead
of passing it directly to avoid having to cast away its const qualifier.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9300-fast-import.sh')
0 files changed, 0 insertions, 0 deletions