diff options
author | René Scharfe <l.s.r@web.de> | 2015-02-15 19:33:52 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-02-17 13:40:49 -0800 |
commit | dc8edc8f7d503b96dc4ceb275f7f6ca7637be5a9 (patch) | |
tree | e82cbd6028cabce7a06e05934575a447e41430c0 /builtin/name-rev.c | |
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 'builtin/name-rev.c')
0 files changed, 0 insertions, 0 deletions