receive-pack: switch global variable 'commands' to a parameter
authorJay Soffian <jaysoffian@gmail.com>
Mon, 19 Apr 2010 22:08:30 +0000 (18:08 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Apr 2010 05:18:36 +0000 (22:18 -0700)
Receive-pack is inconsistent in its usage of the 'commands'
variable; though it is setup as a global and accessed that way by
execute_commands(), report(), and run_receive_hook(), it is also
passed as a parameter to delete_only() and run_update_post_hook().

For consistency, make it local to cmd_receive_pack and pass it as a
parameter. As long as we're cleaning up, also make our use of the
names 'commands' and 'cmd' consistent.

Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found