ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Vladimir D. Seleznev" <vseleznv@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] git submodule + gear
Date: Fri, 1 Jun 2018 10:02:23 +0300
Message-ID: <20180601070223.GA5530@portlab> (raw)
In-Reply-To: <20180601044405.GB17853@altlinux.org>

On Fri, Jun 01, 2018 at 07:44:06AM +0300, Alexey V. Vissarionov wrote:
> Коллеги, подскажите рабочий способ борьбы с сабжем.
> 
> Вводная: есть каталог с исходниками, а в нем подкаталог (пусть
> будет somelib), добавленный в апстриме через git submodule add.
> 
> Задача: сделать так, чтобы при сборке при посредстве gear этот
> каталог попадал в дерево исходников.
> 
> Пробовал: git submodule update --rebase, git submodule deinit,
> git rm somelib с последующим git add, переименовать somelib в
> some-lib (это было изрядной глупостью, ибо имя давно и прочно
> прибито гвоздями в существенной части апстримных исходников).
> 
> Результат один: `git add --all .` в упор не видит somelib/
> 
> Сейчас сделал так, чтобы работало (пакет собирается, заказчик
> удовлетворен). Теперь хочу сделать красиво.
> 
> Как?

Как вариант: сделать subtree merge в нужный подкаталог.

-- 
   С уважением,
   Владимир Селезнев


  parent reply	other threads:[~2018-06-01  7:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-01  4:44 Alexey V. Vissarionov
2018-06-01  5:53 ` Anton Farygin
2018-06-01  5:55   ` Alexei Takaseev
2018-06-01  7:02 ` Vladimir D. Seleznev [this message]
2018-06-01  7:13   ` Oleg Solovyov

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=20180601070223.GA5530@portlab \
    --to=vseleznv@altlinux.org \
    --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