ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Artem Zolochevskiy" <artem.zolochevskiy@gmail.com>
To: "ALT Linux Team development discussions" <devel@lists.altlinux.org>
Subject: [devel] организация git-репозитория, содежащего нетекстовые данные
Date: Mon, 24 Nov 2008 10:00:19 +0200
Message-ID: <774a4f4a0811240000n7067ba1bq75716b8b72348196@mail.gmail.com> (raw)

hi all

Господа, прошу помощи в организации git/gear-репозитория.

Cитаация такая:
Пишутся два руководства по установке. Различия в тексте -- минимальны
(названия дистрибутивов, может ещё что-то незначительное).
Соотвественно логично держать эти два пакета в одном git/gear
репозитории в разных ветках, чтоб можно было удобно переносить
изменения текста из одной ветки в другую и обратно.

Сложность в том, что помимо текста, руководство содержит скришоты
(png). И они у каждого руководства свои. Я не настолько владею git,
чтоб понять как подхватить изменения из одной ветки в другую, но при
этом не подхватывать "чужие" скриншоты.

Т.е. я предполагал работать как-то так:
бранч master:
  тут всё для дистрибутива office server: текст + png-файлы + office.spec
брачн school:
  тут всё для дистрибутива school server: текст + png-файлы + school.spec

проблема, что при git merge мужду ветками могут подхватываться и
png-файлы, чего хочется избежать.

Подскажите, как лучше организовать такго рода репозиторий.
Моих познаний хватает только для таких вариантов:
1.
делать коммиты на изменения текста строго отдельно. И тогда при
необходимости внесения этих изменений в другую ветку, делать точечные
cherry-pick
2.
вынести сам текст (без png) в отдельный бранч: например upstream (хотя
можно и master). Править его там. В "пакетных" бранчах же (например
назовём их office и school) держать png-шки + пакетосборочное
хозяйство и делать merge с бранчем, содержащим текст. Тогда картинки
остаются на сових местах.

Одним словом, прошу совета бывалых.

Пока оно вот в таком состоянии:
http://git.altlinux.org/people/azol/private/docs-install_office_server.git
Просто как два отдельных бранча.

-- 
Артём Золочевский

             reply	other threads:[~2008-11-24  8:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-24  8:00 Artem Zolochevskiy [this message]
2008-11-24  9:03 ` Aleksey Avdeev
2008-11-24  9:22   ` Artem Zolochevskiy
2008-11-24 10:07     ` Aleksey Avdeev
2008-11-24 13:01       ` Artem Zolochevskiy
2008-11-24  9:40 ` Ivan Fedorov
2008-12-07 13:15   ` Michael Shigorin

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=774a4f4a0811240000n7067ba1bq75716b8b72348196@mail.gmail.com \
    --to=artem.zolochevskiy@gmail.com \
    --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