From: Led <ledest@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] git и пустые каталоги
Date: Fri, 17 Oct 2008 18:29:38 +0300
Message-ID: <200810171829.38469.ledest@gmail.com> (raw)
In-Reply-To: <20081017151252.GA5776@wo.int.altlinux.org>
On Friday, 17 October 2008 18:12:52 Dmitry V. Levin wrote:
> On Fri, Oct 17, 2008 at 05:41:37PM +0300, Led wrote:
> > Как в git обеспечить сохранение пустых каталогов?
>
> Непосредственно в git этого, скорее всего, не добиться.
> Мне не известно способа заставить git-write-tree включить пустой каталог.
> См. тж.
> http://git.or.cz/gitwiki/GitFaq#head-1fbd4a018d45259c197b169e87dafce2a3c6b5
>f9
Где-то так я и знал...
>
> > %build полагается на их присутствие и в них складываются скомпилированные
> > модули, при их отсутствии сборка "обламывается".
>
> mkdir -p?
Уже написал в предидущем посте: таких каталогов не один и их количество и
местонахождение может меняться от релиза к релизу.
>
> > В вариант с
> > touch .gitignore в эти каталоги не подходит, потому что в этом случае:
> > 1) .gitignore попадают в %buildroot и, соответственно, в пакет
>
> Погрепав contents_index, будем считать, что это удовлетворённый FR:
> http://git.altlinux.org/people/ldv/packages/?p=rpm.git;h=maint
Спасибо. Можно надеяться, что это появится в ближайшее время в репозитариях?
>
> > 2) при каждом обновлении из апстрима перед коммитом придётся вручную
> > делать что-то наподобие:
> > find . -type d -empty -name ebin -exec touch \{}/.gitignore \;
>
> Зачем -name ebin?
Ну, в моём случае, это каталоги именем "ebin", просто разбросаны по дереву и с
разным уровнем вложенности.
>
> Цитирую /usr/bin/gear-srpmimport:
>
> find "$subdir" -type d -empty -exec touch -- '{}/.gitignore' ';'
>
> Т.е. можно это делать автоматически.
Автоматически этом ожно сделать из src.rpm, получавтоматически - из тарболов.
Как это сделать при импорте из апстримной SCM?
>
> > А если это не дискретные обновления из апстрима, а импорт из апстримовой
> > SCM?
>
> Добавление .gitignore при импорте лучше делать автоматически.
А exclude этих .gitignore при генерации тарбола для src.rpm из git'a можно
сделать автоматически?
Вопрос не в том что "git хороший или плохой". Вопрос его применимости не
столько к разработке "с нуля", а к сборке пакетов, источники для которых
могут быть в любом формате и апстрим которых не обязательно следует "правилу
git'а, гласящем, что пустых каталогов не бывает".:)
--
Led
next prev parent reply other threads:[~2008-10-17 15:29 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-17 14:41 Led
2008-10-17 14:44 ` Andrey Rahmatullin
2008-10-17 15:05 ` Led
2008-10-17 15:10 ` [devel] [JT] " Andrey Rahmatullin
2008-10-17 15:12 ` [devel] " Dmitry V. Levin
2008-10-17 15:29 ` Led [this message]
2008-10-17 15:51 ` Dmitry V. Levin
2008-10-17 16:05 ` Led
2008-10-17 16:09 ` Dmitry V. Levin
2008-10-17 16:16 ` Mikhail Gusarov
2008-10-17 16:23 ` Dmitry V. Levin
2008-10-17 16:26 ` Mikhail Gusarov
2008-10-17 16:40 ` Led
2008-10-17 16:16 ` Damir Shayhutdinov
2008-10-17 16:44 ` Led
2008-10-19 22:28 ` Led
2008-10-17 17:44 ` Led
2008-10-17 18:46 ` [devel] Q: git 1.6.0 Kirill A. Shutemov
2008-10-17 19:04 ` Dmitry V. Levin
2008-10-20 22:54 ` [devel] git и пустые каталоги Dmitry V. Levin
2008-11-03 3:08 ` Led
2008-11-04 18:47 ` Aleksey Avdeev
2008-11-04 18:49 ` Led
2008-11-04 20:16 ` Led
2008-11-04 20:44 ` Dmitry V. Levin
2008-11-04 21:03 ` Led
2008-11-04 21:42 ` Dmitry V. Levin
2009-01-27 23:25 ` Dmitry V. Levin
2009-01-27 23:37 ` Led
2009-02-01 8:13 ` Ildar Mulyukov
2009-02-01 13:27 ` [devel] git-rev-parse syntax in .gear/rules Dmitry V. Levin
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=200810171829.38469.ledest@gmail.com \
--to=ledest@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