git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[RFC][GSoC Proposal Draft] clone: bundle-uri: make it resumable

From
Khalid Masum <khalid.masum.92@gmail.com>
Date
Mar 25, 2023, 08:36 UTC
Message-ID
<20e57ea3-3284-a5c8-09a8-5f2159818d57@gmail.com>
Hello!
This is my draft proposal to implement resumable bundle-uri clone.

I would love to hear your thoughts on this.  Also, I think the timeline section

could be improved amd I need your input on that.
thanks,
  -- Khalid Masum

====================================================== GSoC23 Draft Proposal: Resumable cloning with git bundle ======================================================

Overview: ========= Currently, git clones are not resumable. But there is a workaround using git bundles, where the user can `wget -c` the bundle, then clone from it. However this comes with drawbacks that `git clone` does not have. For example, with git clone we can specify branch, or send authentication credentials, which we can not do with `wget` in a simple manner.

However with the new `bundle-uri` we should be able to add this feature.
As suggested by Derrick Stolee <derrickstolee@github.com> here:
https://lore.kernel.org/git/7097d1d6-00a1-2a82-1923-610d41f4053f@github.com/

Where it is suggested that, the randomized temporary download files could be renamed with hashed url, enabling the ability to have resumable clone.

Deliverables:
=============
- Ability to resume a cloning process with bundle-uri.
- Testcases for the newly added feature.
- Update on documentation for the newer changes.
Timeline:
=========
Before April 25:
     - Familiarize myself with git's codebase and architecture.
     - Making small contributions to git.
Before May 25:
     - Research and familiarize with git bundle and git object download
       process.
     - Understanding the core implementation of git bundle.
     - Communicate with mentors for further understanding and finding 
ways of
       implementation.
May 26 - June 20:
     - Starting to implement the git bundle-uri resumable feature.
     - Refactor the codebase for necessary integration.
     - Write some of the test-cases for the created modules.
June 21- July 20:
     - Finish implementing the feature.
     - Necessary test cases are implemented and reviewed.
     - Document the changes.
July 21 - Aug 10:
     - Finishing touches, making sure everything is stable.
Aug 11- 27:
     - Buffer period for any unexpected events.
     - Final report writing.
     - Project submission
Contributions
==============
Microproject:
-------------
Modernized test script: t3501
Link: 
https://lore.kernel.org/git/20220405150657.19801-1-khalid.masum.92@gmail.com/
Status: Accepted

Other contributions: -------------------- Patch review: https://lore.kernel.org/git/pull.1474.git.git.1679233875803.gitgitgadget@gmail.com/

Motivation: =========== I am captivated by the engineering behind Git and aspire to contribute regularly to the project, impacting its features. I view GSoC as an excellent opportunity to jumpstart my contributions and deepen my understanding of software engineering.

Conclusion: =========== Implementation of resumable clone is a long wanted feature in git since 2011. With this contribution I believe we will be able to be closer to this goal, or at least get a very good workaround on this feature.

Message 1 of 1 in “[RFC][GSoC Proposal Draft] clone: bundle-uri: make it resumable”
  1. Khalid MasumMar 25, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.