summaryrefslogtreecommitdiff
path: root/t/t7500
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2012-02-03 17:14:11 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-02-03 14:37:02 -0800
commit31b49d9b653803e7c7fd18b21c8bdd86e3421668 (patch)
treeda885e35b5710ea8f100af03ed6c8b75c1905b44 /t/t7500
parentGit 1.7.9 (diff)
downloadtgif-31b49d9b653803e7c7fd18b21c8bdd86e3421668.tar.xz
prompt: clean up strbuf usage
The do_askpass function inherited a few bad habits from the original git_getpass. One, there's no need to strbuf_reset a buffer which was just initialized. And two, it's a good habit to use strbuf_detach to claim ownership of a buffer's string (even though in this case the owning buffer goes out of scope, so it's effectively the same thing). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7500')
0 files changed, 0 insertions, 0 deletions