send-pack: clarify that cmds_sent is a boolean
commita6916a41d7026f4f0f5136b7f432d189eb305610
authorJunio C Hamano <gitster@pobox.com>
Tue, 19 Aug 2014 20:02:19 +0000 (19 13:02 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Aug 2014 22:36:00 +0000 (22 15:36 -0700)
tree38a1acb9df0432115fadd5e94d1f4e4c0c38a01d
parent16be9375a60413411009b981af53a4f2802bd70e
send-pack: clarify that cmds_sent is a boolean

We use it to make sure that the feature request is sent only once on
the very first request packet (ignoring the "shallow " line, which
was an unfortunate mistake we cannot retroactively fix with existing
receive-pack already deployed in the field) and we set it to "true"
with cmds_sent++, not because we care about the actual number of
updates sent but because it is merely an old idiomatic way.

Set it explicitly to one to clarify that the code that uses this
variable only cares about its zero-ness.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
send-pack.c