summaryrefslogtreecommitdiff
path: root/credential.h
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2016-06-17 19:38:39 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-06-17 17:03:56 -0700
commitc752fcc8e0df02c6b1bd4daec1d08f0f2bcca58a (patch)
tree0a0ac84dda11ce94bfdec9d4d66c35d5c458259b /credential.h
parentgpg-interface: use child_process.args (diff)
downloadtgif-c752fcc8e0df02c6b1bd4daec1d08f0f2bcca58a.tar.xz
verify_signed_buffer: drop pbuf variable
If our caller gave us a non-NULL gpg_status parameter, we write the gpg status into their strbuf. If they didn't, then we write it to a temporary local strbuf (since we still need to look at it). The variable "pbuf" adds an extra layer of indirection so that the rest of the function can just access whichever is appropriate. However, the name "pbuf" isn't very descriptive, and it's easy to get confused about what is supposed to be in it (especially because we are reading both "status" and "output" from gpg). Rather than give it a more descriptive name, we can just use gpg_status as our indirection pointer. Either it points to the caller's input, or we can point it directly to our temporary buffer. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'credential.h')
0 files changed, 0 insertions, 0 deletions