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

Re: Add git-archive [take #2]

From
Junio C Hamano <junkio@cox.net>
Date
Sep 8, 2006, 21:42 UTC
Message-ID
<7vzmdaf32s.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<45013B5A.8000301@innova-card.com>
Franck Bui-Huu <vagabon.xyz@gmail.com> writes:
> Sorry I was speaking about the git protocol. It has been included
> in master branch.

I do not think so. The recent "master" history is like this (look at "gitk --full-history v1.4.2..master -- daemon.c"):

d819e4e daemon: prepare for multiple services

This introduced the daemon_service[] table and run_service facility. The service table contained upload-pack only.

This was merged into "master" and pushed out with 
1efca00 Merge early part of branch 'jc/daemon'

At this point, 'jc/daemon' topic branch contained the d819e4e above and this one, which added upload-tar to the service table:

74c0cc2 daemon: add upload-tar service.

this was part of "next" but was not in "master". This made "tar-tree --remote" against git-daemon usable in "next". But before I pushed this out to "master", upload-archive design you and Rene were working on became a lot more promising and attractive. Especially, discussion with Rene made me realize that redoing upload-xxx protocol for each archiver was not a good design. So I did:

d9edcbd Revert "daemon: add upload-tar service."

on 'jc/daemon' branch. And then that topic was merged into "master" and pushed out, because that will allow you and Rene to work your patch against "master" which would be nicer to not just you but to everybody -- other people can test your patches before they hit my tree on any branch.

In other words,
> 	git tar-tree --remote=git://anything/repo.git

never worked in "master". At least that is how I wanted the commit ancestry graph to look like and why the above merges and reverts were done in the order described above.

Once git archive hits "master", we should announce that "git tar-tree" and "git zip-tree" are deprecated, and we will remove them sometime later. As part of the same announcement we could say that "git tar-tree --remote" works with transports other than git-daemon, but we do not plan to add git native transport support to it before its removal, because "git archive" is preferred method both on local and remote archiving from then on.

Previous: Franck Bui-HuuNext: Rene Scharfe
Message 37 of 40 in “Add git-archive”
  1. 1/2 Add git-archiveFranck Bui-Huu, Sep 5, 2006
  2. Junio C HamanoSep 5, 2006
  3. Franck Bui-HuuSep 6, 2006
  4. Rene ScharfeSep 6, 2006
  5. Jakub NarebskiSep 6, 2006
  6. Rene ScharfeSep 8, 2006
  7. Junio C HamanoSep 6, 2006
  8. Franck Bui-HuuSep 7, 2006
  9. Junio C HamanoSep 7, 2006
  10. Franck Bui-HuuSep 7, 2006
  11. Junio C HamanoSep 7, 2006
  12. Add git-archive [take #2]Franck Bui-Huu, Sep 7, 2006
  13. 1/4 Add git-archiveFranck Bui-Huu, Sep 7, 2006
  14. Junio C HamanoSep 8, 2006
  15. Franck Bui-HuuSep 8, 2006
  16. Rene ScharfeSep 8, 2006
  17. Franck Bui-HuuSep 9, 2006
  18. Rene ScharfeSep 9, 2006
  19. Franck Bui-HuuSep 9, 2006
  20. 2/4 git-archive: wire up TAR format.Franck Bui-Huu, Sep 7, 2006
  21. Rene ScharfeSep 8, 2006
  22. Junio C HamanoSep 8, 2006
  23. Junio C HamanoSep 9, 2006
  24. Rene ScharfeSep 9, 2006
  25. Franck Bui-HuuSep 9, 2006
  26. Junio C HamanoSep 9, 2006
  27. Use xstrdup instead of strdup in builtin-{tar,zip}-tree.cRene Scharfe, Sep 10, 2006
  28. Franck Bui-HuuSep 9, 2006
  29. 3/4 git-archive: wire up ZIP format.Franck Bui-Huu, Sep 7, 2006
  30. 4/4 Add git-upload-archiveFranck Bui-Huu, Sep 7, 2006
  31. Franck Bui-HuuSep 7, 2006
  32. Junio C HamanoSep 8, 2006
  33. Franck Bui-HuuSep 8, 2006
  34. Jakub NarebskiSep 8, 2006
  35. Junio C HamanoSep 8, 2006
  36. Franck Bui-HuuSep 8, 2006
  37. Junio C HamanoSep 8, 2006
  38. Rene ScharfeSep 8, 2006
  39. Junio C HamanoSep 8, 2006
  40. Rene ScharfeSep 6, 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.