From: Eugene Prokopiev <enp@altlinux.org>
To: "devel@ where you _can_ ask" <devel-newbies@lists.altlinux.org>
Subject: [newbies] Git best practices with patches
Date: Thu, 1 Apr 2010 10:41:29 +0400
Message-ID: <g2tf7a739431003312341t9bd149cdo3700bae703d94593@mail.gmail.com> (raw)
> Нормальная работа при написании (и тестировании) патча.
>
> Как это делаю я (в случае если использую репо в стиле gear-srpm):
>
> 1. Прямо в дереве с исходниками хакаю код.
> 2. Когда мне нужно проверить запускаю rpmbb (да-да, без всяких коммитов)
> 3. Когда результат мне понравился делаю так:
> git diff > %name.<something>.patch
> git checkout -f (чтобы убрать свои изменения из дерева)
> в spec дописываю этот патч
> если ранее ни одного патча не было, то пишу в .gear/rules: "copy: *.patch"
> 4. profit!
Схема в первоначальном виде сильно медленнее хаканья внутри сборочного
чрута - т.е. реально нужно больше телодвижений. И тут уже выгоды от
git diff не больше выгод от gendiff. Поэтому - раз уж мучиться - я
заставляю себя выносить патчи в отдельные бранчи. Но я очень пассивный
майнтейнер, потому могу себе такое позволить.
PS: подумал, что здесь этой дискуссии самое место
--
С уважением,
Прокопьев Евгений
reply other threads:[~2010-04-01 6:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=g2tf7a739431003312341t9bd149cdo3700bae703d94593@mail.gmail.com \
--to=enp@altlinux.org \
--cc=devel-newbies@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
devel@ where you _can_ ask
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/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-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
public-inbox-index devel-newbies
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-newbies
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git