From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Искусство git
Date: Fri, 3 Apr 2009 04:23:25 +0400
Message-ID: <20090403002325.GF5698@wo.int.altlinux.org> (raw)
In-Reply-To: <m3myay61d0.fsf@blard.localdomain>
[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]
Hi,
On Fri, Apr 03, 2009 at 07:13:15AM +0700, Michael Pozhidaev wrote:
> Вот такой вопрос про _правильное_ использование git-репозиториев:
>
> предположим есть пакет foobar-1.0.0-alt1, лежит в git-репозитории в
> master. Его собрал и отправил в Сизиф. Потом стал делать сборку в 5.0,
> грю git branch 5.0 и делаю там версию foobar-1.0.0-alt0.M50.1 и тоже
> нормально отправляю в бранч.
>
> Потом поработал над пакетом в master и сделал версию foobar-1.1.0-alt1,
> и когда нужно делать версию для бранча я точно знаю, что она должна
> наследоваться
> только от master и не иметь никаких связей с текущим состоянием ветки
> 5.0, где по-прежнему лежит foobar-1.0.0-alt0.M50.1.
Главное в ваших словах -- это "я точно знаю". girar builder проверяет
наследование для того, чтобы убедиться, что вы не потеряли изменений из
foobar-1.0.0-alt0.M50.1 при подготовке foobar-1.1.0-alt0.M50.1.
По этой причине в ту ветку, которая предназначена для 5.0, нужно смержить
и foobar-1.0.0-alt0.M50.1, и foobar-1.0.0-alt1.
Например, если ветка для 5.0 называется 5.0, а ветка для Сизифа называется
master, то можно сделать нечто вроде
git checkout 5.0
git pull . master
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2009-04-03 0:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-03 0:13 Michael Pozhidaev
2009-04-03 0:23 ` Dmitry V. Levin [this message]
2009-04-03 0:31 ` Michael Pozhidaev
2009-04-03 0:59 ` Alexey I. Froloff
2009-04-03 1:08 ` Michael Pozhidaev
2009-04-03 5:15 ` Mikhail Gusarov
2009-04-03 1:11 ` Led
2009-04-03 14:30 ` Denis Pynkin
2009-04-03 16:20 ` Michael Pozhidaev
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=20090403002325.GF5698@wo.int.altlinux.org \
--to=ldv@altlinux.org \
--cc=devel@lists.altlinux.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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git