Re: split directories into branches
- From
- shawn 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?