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

moving self contained subdirectories from a project to another

From
Luca Barbato <lu_zero@gentoo.org>
Date
Jun 18, 2007, 12:24 UTC
Message-ID
<46767979.2030303@gentoo.org>

Lately I'm trying to move a subdirectory from one project to another, both tracked in git.

This directory is currently duplicated in two different projects and my plan was to remove it from those and make a library so it could be shared between them.

Now, the simple way would be get a scratchpad branch, prune everything but what I want, push to the library repo, make the projects use it.

There is already a script that automates this task? There are any pitfalls I'm not considering?

lu
PS: keep me on CC since I'm not subscribed
-- 
Luca Barbato

Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero
Message 1 of 1 in “moving self contained subdirectories from a project to another”
  1. Luca BarbatoJun 18, 2007

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.