Re: split directories into branches

2016-07-05 Thread Konstantin Khomoutov
On Mon, 4 Jul 2016 17:03:46 -0400 shawn wilson 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: [...] I used something along these

Re: split directories into branches

2016-07-04 Thread shawn wilson
correction On Mon, Jul 4, 2016 at 7:30 PM, shawn wilson wrote: > shopt -s extglob; declare -a f=(!(cookbooks)); git filter-branch > --tree-filter "mkdir -p cookbooks/base_sys && mv ${f[@]} > cookbooks/base_sys" > -- To unsubscribe from this list: send the line "unsubscribe

Re: split directories into branches

2016-07-04 Thread shawn wilson
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

Re: split directories into branches

2016-07-04 Thread Andreas Schwab
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. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG

Re: split directories into branches

2016-07-04 Thread shawn wilson
On Mon, Jul 4, 2016 at 2:29 PM, Konstantin Khomoutov wrote: > On Mon, 4 Jul 2016 14:15:58 -0400 > shawn wilson wrote: > > I don't possess the official stance on this topic but AFAIK user-level > questions are fine on this list. In that case :) ...

Re: split directories into branches

2016-07-04 Thread Konstantin Khomoutov
On Mon, 4 Jul 2016 14:15:58 -0400 shawn wilson wrote: [...] > > I know Git tracks content, not files (and directory) but still many > > folks have "stable" directories for their files, assign certain > > semantics to them etc. I've needed such transfers myself, and this > >

Re: split directories into branches

2016-07-04 Thread shawn wilson
On Mon, Jul 4, 2016 at 1:39 PM, Konstantin Khomoutov wrote: > On Mon, 4 Jul 2016 12:45:39 -0400 > shawn wilson wrote: > > > To achieve what you're after I used `git subtree split` followed by > `git filter-branch --tree-filter ...` which moved all the

Re: split directories into branches

2016-07-04 Thread Konstantin Khomoutov
On Mon, 4 Jul 2016 12:45:39 -0400 shawn wilson wrote: > I've got a chef cookbook repo where everyone started developing > cookbooks in a single dev branch (not project specific). Minus a few > edge cases, it should be fairly simple to split this up into feature > branches

split directories into branches

2016-07-04 Thread shawn wilson
I've got a chef cookbook repo where everyone started developing cookbooks in a single dev branch (not project specific). Minus a few edge cases, it should be fairly simple to split this up into feature branches based on /cookbooks/. I tried: $ git filter-branch --subdirectory-filter cookbooks/--