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>

Jeff King committed May 9, 2019 at 17:31 UTC c95fc72f47341cf7cf80b3b878cc8d35684bc1e8
1 file changed +2 -3
builtin/receive-pack.c
+2 -3
@@ -1809,8 +1809,7 @@ static const char *unpack_with_sideband(struct shallow_info *si)
1809 return ret;
1810 }
1811
1812 -static void prepare_shallow_update(struct command *commands,
1813 - struct shallow_info *si)
1812 +static void prepare_shallow_update(struct shallow_info *si)
1813 {
1814 int i, j, k, bitmap_size = DIV_ROUND_UP(si->ref->nr, 32);
1815
@@ -1876,7 +1875,7 @@ static void update_shallow_info(struct command *commands,
1875 si->ref = ref;
1876
1877 if (shallow_update) {
1879 - prepare_shallow_update(commands, si);
1878 + prepare_shallow_update(si);
1879 return;
1880 }
1881