git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christian Jaeger <christian@pflanze.mine.nu>
To: Michael J Gruber <git@drmicha.warpmail.net>
Cc: Matthieu Moy <Matthieu.Moy@imag.fr>,
	Nguyen Thai Ngoc Duy <pclouds@gmail.com>,
	Git Mailing List <git@vger.kernel.org>,
	Marc Feeley <feeley@iro.umontreal.ca>,
	Gambit List <Gambit-list@iro.umontreal.ca>
Subject: Re: [gambit-list] Separating generated files? (Re: Mercurial -> git)
Date: Wed, 15 Oct 2008 19:28:20 +0200	[thread overview]
Message-ID: <48F62834.9080102@pflanze.mine.nu> (raw)
In-Reply-To: <48F61D77.3080100@drmicha.warpmail.net>

Michael J Gruber wrote:
> I wonder whether a clever use of "excludes" and GIT_DIR would allow
> tracking the different filesets in the same dir, but using different
> repos. I'm just afraid it's a fragile setup, in the sense that it relies
> on config stuff which is not tracked (and thus not reproduced
> automatically on clone).

I expect that using a superproject repository to tie together the two 
repositories is good and necessary because it is the link that allows to 
specify which commit in the repo of generated files belongs together 
with a commit in the repo of source files. So just using two separate 
repositories without making them submodules of a superproject does not 
seem to be a good idea to me.

Once there is a superproject repository, one could also commit config 
files of the submodules into it (I'm not sure what that will buy 
though--.gitignore is outside and can committed anyway, at least as long 
as not both repositories are overlaid as you suggest).

You're probably right that strictly speaking, there is no need to move 
generated files out into a separate directory tree; but I think doing 
the move would be worthwhile since it takes away one level of complexity 
(you can then access the build/.git repository without the need of 
setting GIT_DIR), and because it may be a good idea anyway (for example 
it will be easier to grep the sources without getting hits from the 
generated files). [Also, the exclude patterns wouldn't be easy, as we 
couldn't really just exclude all *.c files from the view of the source 
repository, since there are also some hand-crafted ones; the excludes 
would need full paths which would have to be kept up to date manually, 
unless we wanted to live with the fact that newly created manual .c 
files would be added using "git add -f".]

Christian.

  reply	other threads:[~2008-10-15 17:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E6D34628-783D-4597-8B00-C10F27F63BE2@iro.umontreal.ca>
     [not found] ` <48F5D86B.6040501@pflanze.mine.nu>
2008-10-15 14:54   ` Separating generated files? (Re: Mercurial -> git) Nguyen Thai Ngoc Duy
2008-10-15 15:30     ` [gambit-list] " Matthieu Moy
2008-10-15 16:42       ` Michael J Gruber
2008-10-15 17:28         ` Christian Jaeger [this message]
2008-10-16 12:00           ` [gambit-list] Separating generated files? Christian Jaeger
2008-10-16 12:12             ` Santi Béjar
2008-10-16 12:32               ` Christian Jaeger
2008-10-16 13:29                 ` Santi Béjar
2008-10-15 16:45       ` Christian Jaeger

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=48F62834.9080102@pflanze.mine.nu \
    --to=christian@pflanze.mine.nu \
    --cc=Gambit-list@iro.umontreal.ca \
    --cc=Matthieu.Moy@imag.fr \
    --cc=feeley@iro.umontreal.ca \
    --cc=git@drmicha.warpmail.net \
    --cc=git@vger.kernel.org \
    --cc=pclouds@gmail.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;
as well as URLs for NNTP newsgroup(s).