Skip to content

Removing the guesswork of HEAD in "clone"

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest6 patches 1 replyIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6upload-pack.c: do not pass confusing cb_data to mark_our_ref()upload-pack.c+1 -10 replies
2/6upload-pack: send symbolic ref information as capabilityupload-pack.c+43 -51 reply
3/6upload-pack: send non-HEAD symbolic refsupload-pack.c+1 -00 replies
4/6connect.c: make parse_feature_value() staticcache.h connect.c+2 -20 replies
5/6connect: annotate refs with their symref information in get_remote_head()connect.c+60 -00 replies
6/6clone: test the new HEAD detection logict/t5601-clone.sh+11 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/6] Removing the guesswork of HEAD in "clone"

This reworks the old idea from 2008 ($gmane/102039) to teach upload-pack to say where symbolic refs are pointing at in the initial ref advertisement as a new capability "sym", and allow "git clone" to take advantage of that knowledge when deciding what branch to point at with the HEAD of the newly created repository.

Thanks go to Andreas Krey for reigniting the ember in a patch series a few weeks ago.

I did not do anything more than just compile it once; all the bugs in this round are mine (it is all new code after all).

Junio C Hamano (6):
upload-pack.c: do not pass confusing cb_data to mark_our_ref()
upload-pack: send symbolic ref information as capability
upload-pack: send non-HEAD symbolic refs
connect.c: make parse_feature_value() static
connect: annotate refs with their symref information in get_remote_head()
clone: test the new HEAD detection logic

 cache.h          |  1 -
 connect.c        | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 t/t5601-clone.sh | 11 ++++++++++
 upload-pack.c    | 51 +++++++++++++++++++++++++++++++++++++++------
 4 files changed, 118 insertions(+), 8 deletions(-)
Signature · 1 line
1.8.4-585-g8d1dcaf