Git development
 help / color / mirror / Atom feed
From: "Santi Béjar" <santi@agolina.net>
To: pggrd <git@paggard.com>
Cc: git@vger.kernel.org
Subject: Re: Managing several threads of the same project in GIT
Date: Fri, 26 Dec 2008 12:50:34 +0100	[thread overview]
Message-ID: <adf1fd3d0812260350h6da65cf0p164b52407ce6767@mail.gmail.com> (raw)
In-Reply-To: <loom.20081226T110416-269@post.gmane.org>

2008/12/26 pggrd <git@paggard.com>:
> Hello,
>
> I've been studying GIT for some time already, but still have not figured out if
> it can be used for the scenario like this:
>
> for example:
>
> I have a project, which divides to threads aiming to different clients

I suppose what you call threads are branches in git.

> most of the code in the project is shared between the threads
> in certain files there are different code parts to meet client requirements
> but even those files share the rest of the code
>
> What I need to be able to do is:
> - to get code for any thread I like at any time
> - to be able to develop each thread separately
> - to be able to merge certain changes from one thread to another, at the same
> time without loosing the changes specific to the thread, and keep track of merge
> history
>

Git works best with convergent branches, so all branches should have
more or less the same code.

What you can do is to have different configuration for each client (or
Makefile variables), in the same way git supports different
architectures, different sha1 implementations, etc. All the code is
there and you just choose which one to use.

Santi

  reply	other threads:[~2008-12-26 11:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-26 11:20 Managing several threads of the same project in GIT pggrd
2008-12-26 11:50 ` Santi Béjar [this message]
2008-12-26 12:35 ` Sitaram Chamarty

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=adf1fd3d0812260350h6da65cf0p164b52407ce6767@mail.gmail.com \
    --to=santi@agolina.net \
    --cc=git@paggard.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox