git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Linus Torvalds <torvalds@osdl.org>
To: David Roundy <droundy@abridgegame.org>
Cc: git@vger.kernel.org, darcs-devel@darcs.net
Subject: Re: using git directory cache code in darcs?
Date: Sun, 17 Apr 2005 09:24:20 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.58.0504170916080.7211@ppc970.osdl.org> (raw)
In-Reply-To: <20050417121712.GA22772@abridgegame.org>



On Sun, 17 Apr 2005, David Roundy wrote:
> 
> That's all right.  Darcs would only access the cached data through a
> git-caching layer, and we've already got an abstraction layer over the
> pristine cache.  As long as the git layer can quickly retrieve the contents
> of a given file, we should be fine.

Yes.

In fact, one of my hopes was that other SCM's could just use the git
plumbing. But then I'd really suggest that you use "git" itself, not any
"libgit". Ie you take _all_ the plumbing as real programs, and instead of
trying to link against individual routines, you'd _script_ it.

In other words, "git" would be an independent cache of the real SCM,
and/or the "old history" (ie an SCM that uses git could decide that the
git stuff is fine for archival, and really use git as the base: and then
the SCM could entirely concentrate on _only_ the "interesting" parts, ie
the actual merging etc).

That was really what I always personally saw "git" as, just the plumbing
beneath the surface. For example, something like arch, which is based on
"patches and tar-balls" (I think darcs is similar in that respect), could
use git as a _hell_ of a better "history of tar-balls".

The thing is, unless you take the git object database approach, using 
_just_ the index part doesn't really mean all that much. Sure, you could 
just keep the "current objects" in the object database, but quite 
frankly, there would probably not be a whole lot of point to that. You'd 
waste so much time pruning and synchronizing with your "real" database 
that I suspect you'd be better off not using it.

(Or you could prune nightly or something, I guess).

		Linus

  reply	other threads:[~2005-04-17 16:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-16 13:22 using git directory cache code in darcs? David Roundy
2005-04-16 13:31 ` Ingo Molnar
2005-04-16 14:28 ` Junio C Hamano
2005-04-16 22:43 ` Linus Torvalds
2005-04-17 12:17   ` David Roundy
2005-04-17 16:24     ` Linus Torvalds [this message]
2005-04-17 16:49       ` Mike Taht
2005-04-17 22:37       ` Nomad Arton
2005-04-17 23:23         ` Junio C Hamano
2005-04-18  2:00           ` Paul Jackson
2005-04-18  2:56       ` Paul Jackson
2005-04-18  3:06         ` Linus Torvalds
2005-04-18  4:36           ` Paul Jackson
2005-04-18  9:23             ` git options Mike Taht

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

  List information: http://vger.kernel.org/majordomo-info.html

* 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.0504170916080.7211@ppc970.osdl.org \
    --to=torvalds@osdl.org \
    --cc=darcs-devel@darcs.net \
    --cc=droundy@abridgegame.org \
    --cc=git@vger.kernel.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).