remote: pass NULL to read_ref_full() because object ID is not needed
commit99f86bde8332dbff834b9e4c0e929c594200807a
authorRené Scharfe <l.s.r@web.de>
Wed, 11 Dec 2019 18:46:37 +0000 (11 19:46 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Dec 2019 21:48:46 +0000 (11 13:48 -0800)
tree28f8d33d92dc233bb4b094ffe8e454a588066915
parente0ae2447d66aa3983837ddc3d6fc0c3371a8e350
remote: pass NULL to read_ref_full() because object ID is not needed

read_ref_full() wraps refs_read_ref_full(), which in turn wraps
refs_resolve_ref_unsafe(), which handles a NULL oid pointer of callers
not interested in the resolved object ID.  Make use of that feature to
document that mv() is such a caller.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/remote.c