unpack-trees: don't shadow global var the_index
commit86016ec3042ec52eef9f45386c50384419d030c0
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 13 Aug 2018 16:14:27 +0000 (13 18:14 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Aug 2018 21:14:43 +0000 (13 14:14 -0700)
tree9eeb7818b27edc24d7d7e29818f1615fc05ca5c1
parent383480ba4ffc15b975e324bf7abbc01324d9935e
unpack-trees: don't shadow global var the_index

This function mark_new_skip_worktree() has an argument named the_index
which is also the name of a global variable. While they have different
types (the global the_index is not a pointer) mistakes can easily
happen and it's also confusing for readers. Rename the function
argument to something other than the_index.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c