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

[PATCH 0/8] builtin-clone

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Apr 17, 2008, 23:32 UTC
Message-ID
<alpine.LNX.1.00.0804171923040.19665@iabervon.org>

This is my latest version, rebased approximately on current master (or recent maint, I guess). It's missing all of Johan's stuff, which is tests for stuff I've fixed and (after this series) a series to make the clone generate packed refs. I believe Johannes has a bunch of changes, and I haven't been working on this lately, and it needs review more than anything, so I'm sending it out.

Daniel Barkalow (8):
  Mark the list of refs to fetch as const
  Add a lockfile function to append to a file
  Add a library function to add an alternate to the alternates file
  Add a function to set a non-default work tree
  Have a constant extern refspec for "--tags"
  Allow for having for_each_ref() list extra refs
  Provide API access to init_db()
  Build in clone
 Makefile                      |    2 +-
 builtin-clone.c               |  546 +++++++++++++++++++++++++++++++++++++++++
 builtin-fetch.c               |   10 +-
 builtin-init-db.c             |  180 +++++++-------
 builtin.h                     |    1 +
 cache.h                       |    7 +
 contrib/examples/git-clone.sh |  522 +++++++++++++++++++++++++++++++++++++++
 environment.c                 |    6 +
 git-clone.sh                  |  522 ---------------------------------------
 git.c                         |    1 +
 lockfile.c                    |   17 ++
 refs.c                        |   18 ++
 refs.h                        |    9 +
 remote.c                      |    9 +
 remote.h                      |    2 +
 sha1_file.c                   |   12 +
 transport.c                   |   16 +-
 transport.h                   |    4 +-
 18 files changed, 1256 insertions(+), 628 deletions(-)
 create mode 100644 builtin-clone.c
 create mode 100755 contrib/examples/git-clone.sh
 delete mode 100755 git-clone.sh
Next: Johan Herland
Message 1 of 4 in “builtin-clone”
  1. 0/8 builtin-cloneDaniel Barkalow, Apr 17, 2008
  2. Johan HerlandApr 18, 2008
  3. Daniel BarkalowApr 18, 2008
  4. Johan HerlandApr 18, 2008

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.