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

Complete http-pull; where should it go?

From
Daniel Barkalow <barkalow@iabervon.org>
Date
May 1, 2005, 19:29 UTC
Message-ID
<Pine.LNX.4.21.0505011508270.30848-100000@iabervon.org>

I've been working on http-pull, and I've made it able to download the target commit from ...git/refs/<dir>/<name> (instead of making you figure it out yourself), and also write the target it looks up to your local .git/refs/<w-d>/<w-n> (which doesn't have to be at all related to the source one. In fact, I just got the latest Linus tree with:

git-http-pull -t -w heads/linus heads/master \
  http://www.kernel.org/pub/scm/git/git.git/
git-read-tree $(cat .git/refs/heads/linus)
git-checkout-cache -a
git-update-cache --refresh

(and I didn't get any of the history, although I could have if I wanted to; and I could get it now if I decided I needed it).

My question is, where does this belong? It's based on adding to the core as it has been the knowledge that .git/refs/*/* consists of hex-format hash files, both locally and on remote servers. I think this level of information belongs in the plumbing; at least, if people are to be able to use different git-based systems to access the same repositories, they have to agree. And there seems to be that much agreement, and so it makes sense to make it part of the core.

(For that matter, people seem to agree that refs/heads/ has heads, and refs/heads/master is the one you want to pull if you don't know otherwise; I didn't include this information at all)

	-Daniel
*This .sig left intentionally blank*
Next: Linus Torvalds
Message 1 of 14 in “Complete http-pull; where should it go?”
  1. Daniel BarkalowMay 1, 2005
  2. Linus TorvaldsMay 1, 2005
  3. Daniel BarkalowMay 1, 2005
  4. Linus TorvaldsMay 1, 2005
  5. Daniel BarkalowMay 1, 2005
  6. Linus TorvaldsMay 1, 2005
  7. Daniel BarkalowMay 1, 2005
  8. Linus TorvaldsMay 1, 2005
  9. Junio C HamanoMay 2, 2005
  10. Linus TorvaldsMay 2, 2005
  11. Junio C HamanoMay 2, 2005
  12. Linus TorvaldsMay 2, 2005
  13. Daniel BarkalowMay 2, 2005
  14. Junio C HamanoMay 1, 2005

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.