ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] I: gear new utility
@ 2007-11-06 12:30 Alexey Gladkov
  2007-11-06 13:06 ` Damir Shayhutdinov
  2007-11-06 13:29 ` Alexey I. Froloff
  0 siblings, 2 replies; 11+ messages in thread
From: Alexey Gladkov @ 2007-11-06 12:30 UTC (permalink / raw)
  To: Dmitry V. Levin, ALT Devel discussion list

Приветствую!

Я закончил дорабатывать новую утилиту (пока только под себя) - gear-merge. 
Думаю она готова к основной ветке. Дим, как будет у тебя время смердж её 
в основную ветку.

Эта утилита может помочь, если вы предполагаете хранить оригинальные 
исходники, патчи на них и метафайлы, требующиеся для сборки, в 
отдельных бранчах.

Основная задача утилиты -- это слияние (merge) нескольких бранчей в 
один результирующий master-бранч, из которого можно собирать пакет.

Собственно пример использования:

[legion ash]$ git-branch 
* master
  patch/add-losetup
  patch/cleanup-warnings
  patch/fix-gcc-warnings
  patch/use-cflags
  upstream

[legion ash]$ cat .gear/merge 
merge: upstream               message="Merge upstream sources"
merge: patch/add-losetup      message="Apply patch 'add-losetup'"
merge: patch/cleanup-warnings message="Apply patch 'cleanup-warnings'"
merge: patch/fix-gcc-warnings message="Apply patch 'fix-gcc-warnings'"
merge: patch/use-cflags       message="Apply patch 'use-cflags'"

Результатом будет бранч (master) в котором будут слиты исходники и патчи
из отдельных веток.

Или так, если предпочитаете держать патчи не приложенными:

[legion ash]$ cat .gear/merge 
merge: upstream               message="Merge upstream sources"
gendiff: patch/add-losetup      master name=dash-alt-add-losetup.patch
gendiff: patch/cleanup-warnings master name=dash-alt-cleanup-warnings.patch
gendiff: patch/fix-gcc-warnings master name=dash-alt-fix-gcc-warnings.patch
gendiff: patch/use-cflags       master name=dash-alt-use-cflags.diff

Нечто подобное есть в git.alt:/people/vsu/packages/kernel-build-scripts.git
под названием merge-all-branches. Некоторые идеи были взяты оттуда.

С добавлением этой утилиты появится ещё один способ организовать
репозиторий (по крайней мере для меня).

http://git.altlinux.org/people/legion/packages/gear.git?p=gear.git;a=shortlog;h=legion/gear-merge

P.S. Дим, даю копию в devel@.

-- 
Rgrds, legion



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-11-11 23:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-06 12:30 [devel] I: gear new utility Alexey Gladkov
2007-11-06 13:06 ` Damir Shayhutdinov
2007-11-06 13:19   ` Alexey Gladkov
2007-11-06 13:29 ` Alexey I. Froloff
2007-11-06 13:42   ` Alexey Gladkov
2007-11-06 13:45   ` Alexey Gladkov
2007-11-06 14:08     ` Alexey I. Froloff
2007-11-06 14:15       ` Alexey Gladkov
2007-11-06 14:40         ` Alexey I. Froloff
2007-11-06 20:17           ` Alexey I. Froloff
2007-11-11 23:21             ` Alexey Gladkov

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