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

Re: split directories into branches

From
KKKonstantin Khomoutov <kostix+git@007spb.ru>
Date
Jul 5, 2016, 09:56 UTC
Message-ID
<20160705125621.cfa55e07cedd2853377c4f08@domain007.com>
In-Reply-To
<CAH_OBieUYZTi+8W-m1TVVDstzF2vg1VuYQsd9Ka_uDoRYRY5rg@mail.gmail.com>

On Mon, 4 Jul 2016 17:03:46 -0400 shawn wilson <ag4ve.us@gmail.com> wrote:

[...]
Show 5 quoted lines
> > I don't possess the official stance on this topic but AFAIK
> > user-level questions are fine on this list.
> 
> In that case :)
> ... still having issues w/ filter-branch:
[...]
I used something along these lines:
  git filter-branch -f --tree-filter \
    'test -e my/new/dir || mkdir -p my/new/dir
      find . -mindepth 1 -maxdepth 1 \
      -type d -path ./my -prune -o -print \
      | xargs -n 30 mv -t ./my/new/dir' master 
More background on how it works [1] if you want.
1. https://groups.google.com/d/msg/git-users/hxFmfUZpj_k/9IQAQq40BwAJ
Previous: shawn wilson
Message 9 of 9 in “split directories into branches”
  1. shawn wilsonJul 4, 2016
  2. Konstantin KhomoutovJul 4, 2016
  3. shawn wilsonJul 4, 2016
  4. Konstantin KhomoutovJul 4, 2016
  5. shawn wilsonJul 4, 2016
  6. Andreas SchwabJul 4, 2016
  7. shawn wilsonJul 4, 2016
  8. shawn wilsonJul 4, 2016
  9. Konstantin KhomoutovJul 5, 2016

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.