Removing the guesswork of HEAD in "clone"
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest6 patches 1 replyIn review
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | upload-pack.c: do not pass confusing cb_data to mark_our_ref()upload-pack.c | +1 | 0 replies | |
| 2/6 | upload-pack: send symbolic ref information as capabilityupload-pack.c | +43 | 1 reply | |
| 3/6 | upload-pack: send non-HEAD symbolic refsupload-pack.c | +1 | 0 replies | |
| 4/6 | connect.c: make parse_feature_value() staticcache.h connect.c | +2 | 0 replies | |
| 5/6 | connect: annotate refs with their symref information in get_remote_head()connect.c | +60 | 0 replies | |
| 6/6 | clone: test the new HEAD detection logict/ | +11 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
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