From: shawn wilson Date: Mon, 04 Jul 2016 23:30:26 GMT Subject: Re: split directories into branches Message-ID: In-Reply-To: <87eg79qcld.fsf@linux-m68k.org> On Mon, Jul 4, 2016 at 6:10 PM, Andreas Schwab wrote: > shawn wilson writes: > >> $ git filter-branch --tree-filter "shopt -s extglob && mkdir -p >> cookbooks/base_sys && mv !(cookbooks) cookbooks/base_sys" > > extglob changes the parser, you need to set that on a separate line. > by "separate line", I'm guessing you mean outside of the filter-branch eval? Something like this? shopt -s extglob; declare -a f=(!(cookbooks)); git filter-branch --tree-filter "mkdir -p cookbooks/base_sys && mv $f cookbooks/base_sys" (don't have access to the repo atm and am curious if this is what you mean)