]> git.ipfire.org Git - thirdparty/git.git/commit
transport: rename got_remote_heads
authorDerrick Stolee <derrickstolee@github.com>
Thu, 22 Dec 2022 15:14:11 +0000 (15:14 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 25 Dec 2022 07:24:24 +0000 (16:24 +0900)
commit1b759e0cf1c18c637e40c6c191a0b614e4e4ea43
treec00879e950d8cb7e9c9ae82e7745ee3a56848404
parent7cce9074a728fb32501054577963d8ae31d007be
transport: rename got_remote_heads

The 'got_remote_heads' member of 'struct git_transport_data' was used
historically to indicate that the initial server connection was made and
the ref advertisement was returned. With protocol v2, that initial
handshake does not necessarily include the ref advertisement, so this
member is not an accurate name. Thankfully, all uses of the member are
only checking to see if the handshake should take place, not whether or
not some local data has the ref advertisement.

Rename the member to 'finished_handshake' to represent the proper state.
Note that the variable is only set to 1 during the handshake() method.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c