index: break up huge cmd_list construction
index: break up huge cmd_list construction

Rubocop complains about the chained blocks, which requires an extra
variable. We can also break it up across multiple lines to make it a bit
easier to read.

git/git-scm.com,git/git-scm.com,git/git-scm.com,git/git-scm.com