git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Armen Baghumian <armen@OpenSourceClub.org>
To: git@vger.kernel.org
Subject: Project's repository infrastructure (sunbtree and submodules)
Date: Mon, 9 Jun 2008 19:42:03 +0430	[thread overview]
Message-ID: <20080609194203.06698e01@debian> (raw)

Hi,

I have several projects which each project contains several modules.
modules are shared between projects.

For example let say there is three modules A, B, and C, and two
project called P1 and P2. P1 uses A and B modules and P2 uses B and C.

I want to have centralized place to clone/pull/push in P1 and P2 and it
would be nice to push changes in modules(A,B,C) from projects
(P1,P2) so when changes in B pushed from P1 it could be pulled from P2
(think B as a shared module between P1 and P2). 

As far as modules are not big enough I don't want to push changes
directly in to those repositories.

To solve the problem I just create three separated repositories for
each modules (A,B,C) and create two other repositories for each project
and use git-submodule to add modules in each repository.

pushing changes to modules(A,B,C) are really error prone and annoying
so I searched for a better way to solve that problem.

Seems subtree merge[1] is other choice but I'm not sure.

1) What is best way to solve such situation?
2) If subtree is best choice how to push changes to modules(A,B,C) from
projects?

--Armen

[1]
http://www.kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html

             reply	other threads:[~2008-06-09 15:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-09 15:12 Armen Baghumian [this message]
2008-06-11  8:04 ` Project's repository infrastructure (sunbtree and submodules) Armen Baghumian
2008-06-11 18:42 ` Nigel Magnay

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=20080609194203.06698e01@debian \
    --to=armen@opensourceclub.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.
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).