refs: pass NULL to resolve_ref_unsafe() if hash is not needed
authorRené Scharfe <l.s.r@web.de>
Sat, 23 Sep 2017 09:45:04 +0000 (11:45 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 Sep 2017 01:18:21 +0000 (10:18 +0900)
commit744c040b19412fa5075810eb1aced105fad96726
tree1509d28d0c6bd1cffca54a42dbbc6ccce4c26ba9
parente691b027b60034ed3362fc4d6065b6be85bf234b
refs: pass NULL to resolve_ref_unsafe() if hash is not needed

This allows us to get rid of some write-only variables, among them seven
SHA1 buffers.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
14 files changed:
branch.c
builtin/commit.c
builtin/log.c
builtin/receive-pack.c
builtin/remote.c
builtin/submodule--helper.c
builtin/symbolic-ref.c
http-backend.c
log-tree.c
refs.c
remote.c
revision.c
transport.c
upload-pack.c