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

Re: [PATCH] built-in tar-tree and remote tar-tree

From
Junio C Hamano <junkio@cox.net>
Date
May 19, 2006, 22:56 UTC
Message-ID
<7vbqtthbe7.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060519214318.38240.qmail@web25910.mail.ukl.yahoo.com>
Sven Ekman <svekman@yahoo.se> writes:
> Thanks for your answer. I'm looking forward to try the
> remote tar-tree at the weekend.

A word of caution. This obviously needs the updated stuff on both ends. The downloader needs to have updated tar-tree, and the other end needs the new command upload-tar.

> Is there a simple way to retrieve a single object or a
> list of objects _without_ any of their parents?
The thing is, I do not think that is what you really want.

If you do not have the necessary parents, many of the benefit you list as "why do I want kernel from git repo" would not work. The next fetch will try to see where the common ancestry commit is, in order to download only from that one, for example. For that you would need a well formed repositories on both ends.

Obviously bisect and anything that deal with the traversal of ancestry chain would break, and while you would say "I accept that some things may not work", their failure mode do not even consider that the user might start from such an incomplete repositories to begin with, so one thing is that the user would be very confused, and another thing is that I would not be surprised if some operations further "corrupt" such an already incomplete repository (fsck, prune and probably bisect when it tries to rewind the bisection branch -- your branch head may point at nowhere and the user might need to do manual update-ref instead of "git checkout master" to recover from it), causing further grief.

In other words, to support such partial/incomplete repositories properly, you are talking about a major major surgery. I just do not want to think about it right now.

On the other hand, the primary point of my patch is that the result does _not_ pretend it is a proper git repository, so we do not have to worry about all the above issues.

Previous: Jakub Narebski
Message 7 of 7 in “Feature wish: Cloning without history”
  1. Sven EkmanMay 18, 2006
  2. Jakub NarebskiMay 18, 2006
  3. built-in tar-tree and remote tar-treeJunio C Hamano, May 19, 2006
  4. Junio C HamanoMay 19, 2006
  5. Sven EkmanMay 19, 2006
  6. Jakub NarebskiMay 19, 2006
  7. Junio C HamanoMay 19, 2006

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.