summaryrefslogtreecommitdiff
path: root/compat/win32/pthread.c
diff options
context:
space:
mode:
authorLibravatar Jonathan Tan <jonathantanmy@google.com>2017-09-26 16:56:19 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-27 10:07:44 +0900
commit0cd83283dfd2a22b3f95cbee6eaef196e6bde77d (patch)
tree29ad92cff6879bb372b459ce6e71cbedb91b75e5 /compat/win32/pthread.c
parentSync with 2.14.2 (diff)
downloadtgif-0cd83283dfd2a22b3f95cbee6eaef196e6bde77d.tar.xz
connect: in ref advertisement, shallows are last
Currently, get_remote_heads() parses the ref advertisement in one loop, allowing refs and shallow lines to intersperse, despite this not being allowed by the specification. Refactor get_remote_heads() to use two loops instead, enforcing that refs come first, and then shallows. This also makes it easier to teach get_remote_heads() to interpret other lines in the ref advertisement, which will be done in a subsequent patch. As part of this change, this patch interprets capabilities only on the first line in the ref advertisement, printing a warning message when encountering capabilities on other lines. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/win32/pthread.c')
0 files changed, 0 insertions, 0 deletions