git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Repository of repositories without submodules?

From
MRManuel Reimer <mail+git@m-reimer.de>
Date
Jan 16, 2021, 14:01 UTC
Message-ID
<c92b380f-08da-f31b-4dc4-ff43a1ac256f@m-reimer.de>
In-Reply-To
<CAHS-jcAxNgZq4UNxyooftPn_nA_935THGdNHGk65UKURfkoTmA@mail.gmail.com>
On 16.01.21 11:39, Chuck Ricketts wrote:
> I am cross-compiling many Arch packages with small changes made
> locally in order to better suit a cross-compiling environment. That
> being said, I've got a directory of single-directory git repos that I
> would like to publish my changes to.

Seems like the common "several directory GIT" case caused by the fact that AUR organizes all PKGBUILDs in separate repos.

For me "git subtree" works great for this case:

https://github.com/M-Reimer/PKGBUILDs or https://github.com/M-Reimer/wine-lol

See the "pkg.sh" file which, to be honest, isn't even from me. I just adapted it slightly to my use case. Original came from here:

https://github.com/yuvadm/archlinux-packages/blob/master/pkg.sh

Every single PKGBUILD is its own "subtree" which can be pushed separately to AUR if I want to. Pushing this subtree makes GIT somehow "automagically" figure out a proper commit history for this subdirectory and push this to the external repo.

Manuel
Previous: Chuck Ricketts
Message 2 of 2 in “Repository of repositories without submodules?”
  1. Chuck RickettsJan 16, 2021
  2. Manuel ReimerJan 16, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.