summaryrefslogtreecommitdiff
path: root/gpg-interface.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-08-19 20:02:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-09-15 20:23:20 (GMT)
commitc67072b90bdc56501483e0ba96d0d833e86362c3 (patch)
tree161ab8115d96d23e30941731abe59293511cc7be /gpg-interface.h
parentb783aa71c096032c02a20f9a41c5f42ce7b914c4 (diff)
downloadgit-c67072b90bdc56501483e0ba96d0d833e86362c3.zip
git-c67072b90bdc56501483e0ba96d0d833e86362c3.tar.gz
git-c67072b90bdc56501483e0ba96d0d833e86362c3.tar.bz2
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 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>
Diffstat (limited to 'gpg-interface.h')
0 files changed, 0 insertions, 0 deletions