From: Ian Hobson <ian@ianhobson.co.uk>
To: Yann Simon <yann.simon.fr@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Advice/help needed
Date: Mon, 16 Nov 2009 22:46:57 +0000 [thread overview]
Message-ID: <4B01D661.2060401@ianhobson.co.uk> (raw)
In-Reply-To: <551f769b0911160840k6ea274e9q33de777fac7cec70@mail.gmail.com>
Yann Simon wrote:
> 2009/11/16 Ian Hobson <ian@ianhobson.co.uk>:
>
>> My thoughts are to have 4 branches, one for each customer. 99% of all
>> changes will be needed by all (or at least most)
>> of the customers (P,W,S and E). How can I make a change to master and then
>> use git to apply those changes to the four branches, without losing the
>> differences between branches?
>>
>> For example (if this is the best way) go from this
>> O-----O-----A-----B-----C (master)
>> \----P
>> \---W
>> \--S
>> \-E
>>
>> to first this, where D is the net effect of A B and C (this is for ease of
>> reading logs, and commit messages),
>> O-----O-----D (head) \----P
>> \---W
>> \--S
>> \-E
>>
>> and then to this, (without editing all the files four times?)
>> O-----O-----D (head)
>> \----P-----D'
>> \---W----D''
>> \--S-----D'''
>> \-E-----D''''
>>
>
> What I would do is:
> - one branch for the common
> - one branch for each customer, which contains the specific
> differences compare to the common branch
>
> You could program on the common branch.
> When you are ready, you can checkout each specific branch and rebase
> on the common branch.
> For example:
> $ git checkout common
> edit, test, commit
> $ git checkout client1
> $ git rebase common
> $ git checkout client2
> $ git rebase common
>
>
Hi Yann,
I'll use master for common, unless I have a large chunk of development
to do, and see how it goes.
Many thanks.
Ian
prev parent reply other threads:[~2009-11-16 22:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-16 16:27 Advice/help needed Ian Hobson
2009-11-16 16:40 ` Yann Simon
2009-11-16 22:46 ` Ian Hobson [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B01D661.2060401@ianhobson.co.uk \
--to=ian@ianhobson.co.uk \
--cc=git@vger.kernel.org \
--cc=yann.simon.fr@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