From: Linus Torvalds <torvalds@osdl.org>
To: tony.luck@intel.com
Cc: linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: ia64 git pull
Date: Thu, 21 Apr 2005 16:19:47 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.58.0504211608300.2344@ppc970.osdl.org> (raw)
In-Reply-To: <200504212301.j3LN1Do05507@unix-os.sc.intel.com>
On Thu, 21 Apr 2005 tony.luck@intel.com wrote:
>
> I want to have one "shared objects database" which I keep locally and
> mirror publicly at kernel.org/pub/scm/...
Ahh, ok. That's easy.
Just set up one repository. Then, make SHA1_FILE_DIRECTORY point to that
repository, and everybody will automatically share all file objects.
HOWEVER. And this is a big however - I don't think you want to do this at
this point.
Why? Because I'm still using the stupid "get all objects" thing when I
pull. That's not a fundamental design decision, but basically not doing so
requires that the other end be "git aware", and have some server that is
trustworthy that you can tell "get me all objects I need".
In the absense of that kind of git-aware server, anybody pulling from you
would have to pull _every_ object you have, regardless of whether they
wanted to use them or not. I don't think that's very nice.
So in the long run this issue goes away - we'll just have synchronization
tools that won't get any unnecessary pollution. But in the short run I
actually check my git archive religiously for being clean, and I do
fsck-cache --unreachable $(cat .git/HEAD)
quite often - not because git has been flaky, but simply beause I'm anal.
And getting objects from other branches would mess with that..
> But now I need a way to indicate to consumers of the public shared object
> data base which HEAD to use.
Yes. You'd just need to document where you put those heads. As you say,
you can make it be part of an announcement:
> Perhaps I should just say "merge 821376bf15e692941f9235f13a14987009fd0b10
> from rsync://rsync.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6.git"?
..but that doesn't actually work very well even for me, because I'd much
rather automate pulling from you, rather than having to cut-and-paste the
sha names.
So I think you could just define a head name, and say something like:
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6.git/HEAD.for-linus
and we're all done. Give andrew a different filename, and you're done. The
above syntax is trivial for me to automate.
Linus
next prev parent reply other threads:[~2005-04-21 23:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200504212042.j3LKgng04318@unix-os.sc.intel.com>
[not found] ` <Pine.LNX.4.58.0504211403080.2344@ppc970.osdl.org>
[not found] ` <Pine.LNX.4.58.0504211411160.2344@ppc970.osdl.org>
2005-04-21 21:55 ` tony.luck
2005-04-21 22:29 ` Linus Torvalds
2005-04-21 22:58 ` Petr Baudis
2005-04-21 23:01 ` tony.luck
2005-04-21 23:19 ` Linus Torvalds [this message]
2005-04-22 0:19 ` Bernd Eckenfels
2005-04-22 0:20 ` Petr Baudis
2005-04-22 1:25 ` Petr Baudis
2005-04-22 1:48 ` Inaky Perez-Gonzalez
2005-04-22 1:53 ` Petr Baudis
2005-04-22 2:06 ` Inaky Perez-Gonzalez
2005-04-22 3:30 ` David A. Wheeler
2005-04-21 22:53 ` Petr Baudis
2005-04-22 3:37 ` Horst von Brand
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.58.0504211608300.2344@ppc970.osdl.org \
--to=torvalds@osdl.org \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tony.luck@intel.com \
/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
all inboxes | Powered by JetHome®