ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Alexey I. Froloff" <raorn@immo.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: [devel] Q: .gear-rules и "апстримные" сорцы в отдельном бранче
Date: Tue, 20 Jun 2006 19:19:21 +0400
Message-ID: <20060620151921.GU12268@hell.immo.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 1455 bytes --]

Идея в следующем:

"Апстримные" сорцы лежат в бранче, например upstream, апдейтятся
там некоторым образом (git pull, git svn fetch, git cvsimport -
whatever).  В рабочем бранче лежат мои патченые исходники, спеки
и так далее.  gear пакует бранч upstream в тарбол и делает
git-diff-tree между upstream и некоторым tree-ish.  Почему
tree-ish, а не HEAD?  А потому что я обычно делаю
git-mv -k * .* %name, и вот этот %name мне и надо diff'ать.

Сейчас никто не умеет принимать в качестве аргумента tree-ish,
только путь.  Предлагается следующий синтаксис:

tar: dir name=name base=base branch=branch

diff: dir name=name base=base branch=branch

В первом случае добавляется параметр "branch", в моём примере это
будет выглядеть так:

tar.bz2: . name=@name@-@version@ base=@name@-@version@ branch=upstream-@version@

Где upstream-@version@ это имя тега, который я ставлю по
результатам чекаута (чисто для удобства).

diff: projectname name=@name@-@version@-alt.patch base=. branch=upstream-@version@

projectname - имя каталога с сорцами в рабочем бранче.  По нему
получаем tree_ish_2.  base - имя каталога с сорцами в бранче
upstream.  По нему и по имени бранча получаем tree_ish_1.  Дальше
делается:

git-diff-tree --patch-with-stat $tree_ish_1 $tree_ish_2 > $name.patch


Таким образом получается что у нас "скачет" $tree_id.  Это совсем
бредовая идея или можно начинать готовить патч? ;-)

-- 
Regards,
Sir Raorn.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2006-06-20 15:19 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-20 15:19 Alexey I. Froloff [this message]
2006-06-20 16:09 ` Alexey I. Froloff
2006-06-20 17:00   ` Alexey I. Froloff
2006-06-21  6:27 ` Anton Farygin
2006-06-22  3:49 ` Dmitry V. Levin
2006-06-22  6:36   ` Anton Farygin
2006-06-22  6:40     ` Dmitry V. Levin
2006-06-22  7:37       ` Anton Farygin
2006-06-22  7:40         ` Dmitry V. Levin
2006-06-22  8:01           ` Anton Farygin
2006-06-22  8:16       ` Alexey I. Froloff
2006-06-22  8:23         ` Dmitry V. Levin
2006-06-22  7:32   ` Anton Gorlov
2006-06-22  7:37     ` Dmitry V. Levin
2006-06-22  7:45       ` Anton Gorlov
2006-06-22 10:01         ` [devel] Q: .gear-rules и " апстримные " " Nick S. Grechukh
2006-06-22 10:26           ` Anton Gorlov
2006-06-22  7:47       ` [devel] Q: .gear-rules и "апстримные" " Anton Farygin
2006-06-22  7:48   ` Kirill A. Shutemov
2006-06-22  7:57     ` Dmitry V. Levin
2006-06-22  8:06       ` Anton Gorlov
2006-06-22  8:20         ` Kirill Maslinsky
2006-06-22  8:21         ` Dmitry V. Levin
2006-06-22  8:31           ` Anton Gorlov
2006-06-22  8:14   ` Alexey I. Froloff
2006-06-22  8:26     ` Dmitry V. Levin
2006-06-22  8:53       ` Kirill A. Shutemov
2006-06-22 10:05         ` Dmitry V. Levin
2006-06-22 10:24           ` Anton Farygin
2006-06-22  9:10       ` Alexey I. Froloff
2006-06-22 11:20         ` Dmitry V. Levin
2006-06-22 14:56           ` Alexey I. Froloff
2006-06-22 18:20             ` Dmitry V. Levin
2006-06-29 15:37               ` Alexey I. Froloff
2006-06-24  4:22   ` Alexey Tourbin
2006-06-24 12:40     ` Dmitry V. Levin
2006-06-24 21:59       ` Alexey Tourbin
2006-06-24 22:26         ` Dmitry V. Levin
2006-06-25  0:57           ` Alexey Tourbin
2006-06-25 11:00             ` Dmitry V. Levin
2006-06-25  7:16           ` Q: .gear-rules É "ÁÐÓÔÒÉÍÎÙÅ" ÓÏÒÃÙ × ÏÔÄÅÌØÎÏÍ ÂÒÁÎÞÅ Andrey Khavryuchenko
2006-06-25 10:50             ` [devel] Q: .gear-rules и "апстримные" сорцы в отдельном бранче Dmitry V. Levin
2006-06-25 11:09               ` Q: .gear-rules É "ÁÐÓÔÒÉÍÎÙÅ" ÓÏÒÃÙ × ÏÔÄÅÌØÎÏÍ ÂÒÁÎÞÅ Andrey Khavryuchenko

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=20060620151921.GU12268@hell.immo.ru \
    --to=raorn@immo.ru \
    --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