Re: split directories into branches
- From
- shawn wilson <ag4ve.us@gmail.com>
- Date
- Jul 4, 2016, 23:30 UTC
- Message-ID
- <CAH_OBieNO-fSW-ncsezZ5KG2c80fY-rUU6OPGgw0RJMGcpi+KQ@mail.gmail.com>
- In-Reply-To
- <87eg79qcld.fsf@linux-m68k.org>
On Mon, Jul 4, 2016 at 6:10 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
Show 7 quoted lines
> shawn wilson <ag4ve.us@gmail.com> 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)