public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: "Shawn O. Pearce" <spearce@spearce•org>
To: Guilhem Bonnefille <guilhem.bonnefille@gmail•com>
Cc: git@vger•kernel.org
Subject: Re: .git inside a .git: is it safe?
Date: Mon, 12 Mar 2007 18:15:40 -0400	[thread overview]
Message-ID: <20070312221540.GA16545@spearce.org> (raw)
In-Reply-To: <8b65902a0703121456s56008088ra14452ef7f325cf3@mail.gmail.com>

Guilhem Bonnefille <guilhem.bonnefille@gmail•com> wrote:
> But, I recently discover that everything seems fine if I include the
> Git repo of mainproject inside the Git repo of my project. The layout
> lloks like this:
> myproject
> |- .git
> |- sub
>  |- tree
>    |- mainproject
>      |- .git
> 
> 
> It seems to work. But do you think such layout is "safe" ?

Yes, that's fine.  You just probably want an entry in the top level
project (myproject) that says ignore the stuff under mainproject.
That way "git add ." in myproject doesn't include files in
mainproject by accident.

-- 
Shawn.

  reply	other threads:[~2007-03-12 22:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-12 21:56 .git inside a .git: is it safe? Guilhem Bonnefille
2007-03-12 22:15 ` Shawn O. Pearce [this message]
2007-03-14 15:02   ` Guilhem Bonnefille
2007-03-12 22:56 ` Jakub Narebski

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=20070312221540.GA16545@spearce.org \
    --to=spearce@spearce$(echo .)org \
    --cc=git@vger$(echo .)kernel.org \
    --cc=guilhem.bonnefille@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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