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

New Ft. for Git : Allow resumable cloning of repositories.

From
KJKapil Jain <jkapil.cs@gmail.com>
Date
Mar 8, 2019, 15:43 UTC
Message-ID
<CAMknYENWOW0mj6Bn9OooqKg-sZi9bZUO461Gv1F00=phNwLFQQ@mail.gmail.com>
Objective: Allow pause and resume functionality while cloning repositories.
Below is a rough idea on how this may be achieved.
1) Create a repository_name.json file.
2) repository_name.json will be an index file containing list of all
the files in the repository with default status being "False".
   "False" status of a file signifies that this file is not yet fully
downloaded.
Something like this:
{
  'file1.ext' : "False",
  'file2.ext' : "False",
  'file3.ext' : "False"
}
3) As a file finishes downloading, say 'file1.ext' and 'file2.ext'
have finished downloading, their status will change to:
Something like this:
{
  'file1.ext' : "True",
  'file2.ext' : "True",
  'file3.ext' : "False"
}
4) Suppose due to some reason, before 'file3.ext' could finish
download; cloning is interrupted.
5) After the interruption the repository_name.json and downloaded
files are preserved.
6) Now, when cloning of the same repository begins next time, files
would be downloaded based on information taken from
repository_name.json file.

Note 1: Doing this for cloning would be the main objective, further this may be extended for fetching, pulling, and pushing too.

Note 2: Since this is gsoc time, please don't take this to be a project idea for gsoc, as it was pointed out on irc that this would be a time intensive functionality.

I want to work on building this functionality. Please discuss thoughts on this, so as to make a technically sound to-do list.

Next: Jonathan Tan
Message 1 of 3 in “New Ft. for Git : Allow resumable cloning of repositories.”
  1. Kapil JainMar 8, 2019
  2. Jonathan TanMar 8, 2019
  3. Kapil JainMar 10, 2019

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.