git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Avery Pennarun <apenwarr@gmail.com>
To: Allan Kelly <allankelly@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: sub-directory repo technique
Date: Tue, 16 Jun 2009 12:50:49 -0400	[thread overview]
Message-ID: <32541b130906160950s75f4aa11h59ad2de7d2bcd40c@mail.gmail.com> (raw)
In-Reply-To: <9586f3420906120507o194fc459l5fbdcd14a7095ae8@mail.gmail.com>

On Fri, Jun 12, 2009 at 8:07 AM, Allan Kelly<allankelly@gmail.com> wrote:
> (I need the top-level .gitignore to contain a line '.gitignore' to
> avoid reporting the "sub-repo" .gitignore as untracked - which is
> correct but not of interest. It appears that git automatically ignores
> the .git dir for the westbarnsgala.info repo created below)

It's not really "ignoring" the .git dir.  It's treating the entire
subtree that contains the .git dir as a submodule.  See 'man
git-submodule'.  Git submodules may actually resolve your problem in a
more straightforward way than what you're doing.

You might also be interested in my git-subtree tool:
http://github.com/apenwarr/git-subtree

Have fun,

Avery

      reply	other threads:[~2009-06-16 16:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-12 12:07 sub-directory repo technique Allan Kelly
2009-06-16 16:50 ` Avery Pennarun [this message]

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=32541b130906160950s75f4aa11h59ad2de7d2bcd40c@mail.gmail.com \
    --to=apenwarr@gmail.com \
    --cc=allankelly@gmail.com \
    --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).