git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@osdl.org>
To: Nix <nix@esperi.org.uk>
Cc: git@vger.kernel.org
Subject: Re: Handling very large numbers of symbolic references?
Date: Tue, 25 Jul 2006 16:20:58 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0607251612480.29649@g5.osdl.org> (raw)
In-Reply-To: <87psftb7v8.fsf@hades.wkstn.nix>



On Wed, 26 Jul 2006, Nix wrote:
> 
> Well, actually I was considering trying a combination of two things:
> 
>  - a new type of multi-entry ref (as you suggested), perhaps in a file
>    refs/inactive-heads, which is merged with the heads list by lookup
>    operations only (so merge would see them, but ls-remote would not:
>    `invisible heads' if you will)

Yes, that should work. Make sure that you tell git-fsck-objects and 
git-prune that those heads are reachable, though.

Of course, if you end up having one "master" head (that is the "merge" of 
all branches), that would take care of the reachability issue too: you 
don't actually need to create a _real_ merge, you can just make sure that 
there is a commit that points to all new heads you create. It could even 
have a totally dummy tree node, ie you could do

	oldhead=$(git-rev-parse HEAD^0) || exit
	newhead=$(git commit-tree $oldhead -p $oldhead -p new-bug-head < changelog) || exit
	git update-ref HEAD $newhead $oldhead

which would just update the commit list with a fake "merge" commit merging 
"new-bug-head" into the stream of top commits (using the same tree as the 
previous "HEAD" commit had) so that it's always reachable.

Something like that, anyway. That way you can do a "git clone" and you get 
all the bug commits through a single HEAD.

		Linus

  reply	other threads:[~2006-07-25 23:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-25 19:29 Handling very large numbers of symbolic references? Nix
2006-07-25 21:29 ` Rene Scharfe
2006-07-25 21:52   ` Nix
2006-07-25 22:23 ` Linus Torvalds
2006-07-25 23:08   ` Nix
2006-07-25 23:20     ` Linus Torvalds [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-07-26 18:38 linux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0607251612480.29649@g5.osdl.org \
    --to=torvalds@osdl.org \
    --cc=git@vger.kernel.org \
    --cc=nix@esperi.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).