receive-pack: drop unused "commands" from prepare_shallow_update()
authorJeff King <peff@peff.net>
Thu, 9 May 2019 21:31:39 +0000 (17:31 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 May 2019 05:22:54 +0000 (14:22 +0900)
commitc95fc72f47341cf7cf80b3b878cc8d35684bc1e8
treeacb6a5ea3afd5922f45ef025c2fb1ac6dab7a387
parent7a2a721687f5d8027f6d380b60a2da62c202191b
receive-pack: drop unused "commands" from prepare_shallow_update()

We pass in the list of proposed ref updates to prepare_shallow_update(),
but that function doesn't actually need it (and never has since its
inception in 0a1bc12b6e4). Only its caller, update_shallow_info(), needs
to look at the command list.

Let's drop the unused parameter to reduce confusion.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c