summaryrefslogtreecommitdiff
path: root/builtin/rerere.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2015-03-07 11:50:37 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-03-09 18:18:07 -0700
commit01cec54e135c6c70bf6e1e197590749076e7cdfd (patch)
tree0cca367bdcb59a73f9457684d11b7be5e5cc26a6 /builtin/rerere.c
parentdaemon: use strbuf for hostname info (diff)
downloadtgif-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 'builtin/rerere.c')
0 files changed, 0 insertions, 0 deletions