want-ref
or want
in .prepare_fetch
to avoid transfers of large ref lists?
#1044
Replies: 2 comments 2 replies
-
Edited to set |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for bringing this up! I never really thought about the possible applications of Having a prefix that isn't a directory is something I didn't know was working, did you try it? One way to do that would be to send a request through a proxy, and than re-send the request with an edited payload. Lastly, But as we know, this isn't supported by all forges.
RefSpecs can also be object names, so if the object is known in advance it's no problem to pass it. It's just that right now As it stands, there are two possible improvements:
I welcome you to share your opinion and ideas, maybe it's possible to sketch something out. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to ask the server to limit the list of refs when fetching, or to avoid listing refs altogether when fetching? For example given the following code:
Cargo.toml
I get
139 ref mappings
(and of course this number would be bigger for bigger repos).GitHub doesn't seem to support
want-ref
:But if I wanted to fetch only one sha1 via
want
without even listing refs -- am I starting in the wrong place withprepare_fetch
? The end goal is to fetch a history tree starting with a particular sha1 into a bare repo.Thank you!
Beta Was this translation helpful? Give feedback.
All reactions