diff options
author | René Scharfe <l.s.r@web.de> | 2015-03-07 11:50:37 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-03-09 18:18:07 -0700 |
commit | 01cec54e135c6c70bf6e1e197590749076e7cdfd (patch) | |
tree | 0cca367bdcb59a73f9457684d11b7be5e5cc26a6 /t/t4005-diff-rename-2.sh | |
parent | daemon: use strbuf for hostname info (diff) | |
download | tgif-01cec54e135c6c70bf6e1e197590749076e7cdfd.tar.xz |
daemon: deglobalize hostname information
Move the variables related to the client-supplied hostname into its own
struct, let execute() own an instance of that instead of storing the
information in global variables and pass the struct to any function that
needs to access it as a parameter.
The lifetime of the variables is easier to see this way. Allocated
memory is released within execute(). The strbufs don't have to be reset
anymore because they are written to only once at most: parse_host_arg()
is only called once by execute() and lookup_hostname() guards against
being called twice using hostname_lookup_done.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4005-diff-rename-2.sh')
0 files changed, 0 insertions, 0 deletions