fetch: trivially refactor assignment to ref_nr
commitce3ab21b0c179559621fb7450a6f8c24e0a28ddb
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 9 Feb 2018 20:32:01 +0000 (9 20:32 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Feb 2018 21:10:11 +0000 (9 13:10 -0800)
tree8a7cb359e2d88fb00e076fdadd9083bff5327695
parentaa59e0eaf65b1e535248f67822053e3b2f5fcc26
fetch: trivially refactor assignment to ref_nr

Trivially refactor an assignment to make a subsequent patch
smaller. The "ref_nr" variable is initialized to 0 earlier, just as
"j" is, and "j" is only incremented in that loop, so this change isn't
a logic error.

This change simplifies a subsequent change, which will split the
incrementing of "ref_nr" into two blocks.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c