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

Re: [PATCH 0/4] Pulling refs files

From
Junio C Hamano <junkio@cox.net>
Date
May 15, 2005, 05:33 UTC
Message-ID
<7v4qd5xdby.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.21.0505130245260.30848-100000@iabervon.org>

I am having a bit hard time understanding how the end user uses what you are trying to give them. Is the basic idea to let them say "I want to get Pasky's $GIT_DIR/refs/heads/master and store it in my $GIT_DIR/refs/heads/git-pb, and then I want to start the pull starting from the commit recorded in that ref"?

Assuming that is what you are doing, I do not have much objection to it. I however think introducing REFS_ENVIRONMENT is going overboard.

My understanding of the definition of GIT_DIR is "the directory traditionally known as $(pwd)/.git/ where various things hang underneath". We have GIT_OBJECT_DIRECTORY configurable to be set to something other than $GIT_DIR/objects because people may want to use shared object pools. We have GIT_INDEX_FILE configurable to be set to something other than $GIT_DIR/index because being able to have it on tmp filesystem for some application (like "merge my head and his head without using what I have in my work dir which is a bit ahead of my head already") helps performance; also some Porcelain operations benefit from being able to switch between multiple cache files. I cannot think of a similar argument with an example use pattern that justifies REFS_ENVIRONMENT being set to anything other than $GIT_DIR/refs/.

Previous: Daniel BarkalowNext: Daniel Barkalow
Message 21 of 23 in “Pulling refs files”
  1. 0/4 Pulling refs filesDaniel Barkalow, May 13, 2005
  2. 1/4 Support for refs directoryDaniel Barkalow, May 13, 2005
  3. 2/4 Generic support for pulling refsDaniel Barkalow, May 13, 2005
  4. 3/4 Pull refs by HTTPDaniel Barkalow, May 13, 2005
  5. Edgar ToernigMay 13, 2005
  6. 4/4 Pulling refs by sshDaniel Barkalow, May 13, 2005
  7. H. Peter AnvinMay 13, 2005
  8. Daniel BarkalowMay 15, 2005
  9. Petr BaudisMay 13, 2005
  10. Daniel BarkalowMay 13, 2005
  11. Petr BaudisMay 13, 2005
  12. Daniel BarkalowMay 15, 2005
  13. Petr BaudisMay 17, 2005
  14. Daniel BarkalowMay 17, 2005
  15. Petr BaudisMay 17, 2005
  16. Daniel BarkalowMay 17, 2005
  17. Petr BaudisMay 18, 2005
  18. Daniel BarkalowMay 19, 2005
  19. Petr BaudisMay 19, 2005
  20. Daniel BarkalowMay 19, 2005
  21. Junio C HamanoMay 15, 2005
  22. Daniel BarkalowMay 15, 2005
  23. Junio C HamanoMay 16, 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.