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

Re: ia64 git pull

From
Petr Baudis <pasky@ucw.cz>
Date
Apr 21, 2005, 22:58 UTC
Message-ID
<20050421225857.GB1474@pasky.ji.cz>
In-Reply-To
<Pine.LNX.4.58.0504211520250.2344@ppc970.osdl.org>

Dear diary, on Fri, Apr 22, 2005 at 12:29:07AM CEST, I got a letter where Linus Torvalds <torvalds@osdl.org> told me that...

Show 11 quoted lines
> On Thu, 21 Apr 2005 tony.luck@intel.com wrote:
> > 
> > I can't quite see how to manage multiple "heads" in git.  I notice that in
> > your tree on kernel.org that .git/HEAD is a symlink to heads/master ...
> > perhaps that is a clue.
> 
> It's mainly a clue to bad practice, in my opinion. I personally like the 
> "one repository, one head" approach, and if you want multiple heads you 
> just do multiple repositories (and you can then mix just the object 
> database - set your SHA1_FILE_DIRECTORY environment variable to point to 
> the shared object database, and you're good to go). 
There are two points regarding this:
(i) You need to track heads of remote branches anyway.

(ii) I want an easy way for user to refer to head of another working tree on the same repository (so that you can do just git merge testing).

This is why the multiple heads are there, and it's actually everything they _do_. There's nothing more behind it.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Next: Petr Baudis
Message 1 of 4 in “Re: ia64 git pull”
  1. Petr BaudisApr 21, 2005
  2. Petr BaudisApr 22, 2005
  3. Inaky Perez-GonzalezApr 22, 2005
  4. David A. WheelerApr 22, 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.