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

Re: split directories into branches

From
SWshawn wilson <ag4ve.us@gmail.com>
Date
Jul 4, 2016, 21:03 UTC
Message-ID
<CAH_OBieUYZTi+8W-m1TVVDstzF2vg1VuYQsd9Ka_uDoRYRY5rg@mail.gmail.com>
In-Reply-To
<20160704212926.919a267706a6fa5791c47726@domain007.com>

On Mon, Jul 4, 2016 at 2:29 PM, Konstantin Khomoutov <kostix+git@007spb.ru> wrote:

> On Mon, 4 Jul 2016 14:15:58 -0400
> shawn wilson <ag4ve.us@gmail.com> wrote:
>
> 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:

$ git filter-branch --tree-filter "shopt -s extglob && mkdir -p cookbooks/base_sys && mv !(cookbooks) cookbooks/base_sys" Rewrite a90fb34230e02d9494934e5549f36bdbdd1b6ce6 (1/6) (0 seconds passed, remaining 0 predicted) /usr/local/libexec/git-core/git-filter-branch: eval: line 360: syntax error near unexpected token `(' /usr/local/libexec/git-core/git-filter-branch: eval: line 360: `shopt -s extglob && mkdir -p cookbooks/base_sys && mv !(cookbooks) cookbooks/base_sys' /usr/local/libexec/git-core/git-filter-branch: line 360: warning: syntax errors in . or eval will cause future versions of the shell to abort as Posix requires tree filter failed: shopt -s extglob && mkdir -p cookbooks/base_sys && mv !(cookbooks) cookbooks/base_sys

I'm guessing it's because of how filter-branch is eval'ing stuff. But if I do !\(cookbooks\) it interprets the '(' and ')' as text - ideas?

Previous: Konstantin KhomoutovNext: Andreas Schwab
Message 5 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.