From: Matt Draisey <mattdraisey@sympatico.ca>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: symlinked directories in refs are now unreachable
Date: Mon, 15 Aug 2005 05:01:15 -0400 [thread overview]
Message-ID: <1124096475.749.64.camel@della.draisey.ca> (raw)
In-Reply-To: <7v1x4v4pfx.fsf@assigned-by-dhcp.cox.net>
On Mon, 2005-08-15 at 00:41 -0700, Junio C Hamano wrote:
> Matt Draisey <mattdraisey@sympatico.ca> writes:
>
> > ... My own programming efforts rarely exceed two or three files
> > per project, and don't justify there own .git/objects repository.
> > Still, a few projects do benefit from having their own commit history,
>
> I am afraid I am not quite getting it.
>
> You are interested in many projects that have outside upstream,
> and you typically modify only small portion of each of them,
> which is quite a typical behaviour for individual developers.
> For some reason you want to keep those repository "clean"
> without your own commit objects or changed objects only
> reachable from your commits. Is it what is happening here?
No, all the projects are my own. I am not a developer at all, merely a
hobbyist. Upstream projects don't fit into this scheme.
> > I've only written a commit tool. All the other git and cogito tools I
> > invoke from the outermost directory like so
> >
> > $git-cat-file commit per/Minesweeper/master
> >
> > Symlinking still works here as expected. The per directory is just
> > there so I don't stomp on the outermost namespace, the Minesweeper is a
> > symlink to the nested project's refs directory.
>
> Hmm. So you have two GIT managed trees, $D/matt and $D/Minesweeper,
> and a symlink between them like this. Is that what is happening here?
>
> $D/matt/.git/refs/heads/per/Minesweeper -> $D/Minesweeper/.git/refs/heads
>
No, they are nested
$D/.git/refs/heads/per/Minesweeper -> $D/Minesweeper/.git/refs/heads
The outermost repository merely aggregates a bunch of small unrelated
projects that are not yet ready for an independent existence. The idea
is to put everything under revision control in the hope that eventually
something useful falls out.
My commit tool walks up the chain towards root until it finds the
objects directory and does the appropriate thing.
> Of course 'git-cat-file commit per/Minesweeper/master' would
> work in "$D/matt" directory. How do the set of paths recorded
> in the index file used in these repositories relate to each
> other? Is $D/matt/ tracking the same set of files as the other
> repository tracks? Is it meant to be a superset? Subset? More
> or less independent "private additions"?
>
> There must be some advantage to this arrangement than the more
> typical arrangement I've seen people do, which is to have two
> branches in Minesweeper (that is the upstream, right?)
> repository, one "origin" and the other "master". Upstream
> changes you fetch and pull into "origin" branch while you commit
> your changes to "master" branch. I just do not yet see what
> that advantage is, and I strongly suspect because I misread your
> description and misunderstood the two repository arrangement you
> have and how they are used.
>
> By the way, did you want to take this discussion private or was
> it by accident you did not CC: the list?
>
No, I didn't want to take it private. I just don't know how my email
programme works. I also just discovered that Evolution's Forward As >
Redirect is really a bounce and not a forward at all (it doesn't change
the to: address)
next prev parent reply other threads:[~2005-08-15 9:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-15 2:41 symlinked directories in refs are now unreachable Matt Draisey
2005-08-15 3:12 ` Linus Torvalds
2005-08-15 5:12 ` Junio C Hamano
2005-08-15 8:07 ` Matt Draisey
[not found] ` <7v1x4v4pfx.fsf@assigned-by-dhcp.cox.net>
2005-08-15 9:01 ` Matt Draisey [this message]
2005-08-17 0:53 ` Matt Draisey
2005-08-16 6:25 ` Junio C Hamano
[not found] ` <1124246082.776.54.camel@della.draisey.ca>
2005-08-17 20:41 ` Junio C Hamano
2005-08-18 21:56 ` Matt Draisey
-- strict thread matches above, loose matches on Subject: below --
2005-08-15 8:12 Matt Draisey
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=1124096475.749.64.camel@della.draisey.ca \
--to=mattdraisey@sympatico.ca \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/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).