git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* split directories into branches
@ 2016-07-04 16:45 shawn wilson
  2016-07-04 17:39 ` Konstantin Khomoutov
  0 siblings, 1 reply; 9+ messages in thread
From: shawn wilson @ 2016-07-04 16:45 UTC (permalink / raw)
  To: Git List

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/<feature>.

I tried:
$ git filter-branch --subdirectory-filter cookbooks/<feature>-- <feature>
And
$ git subtree split --prefix cookbooks/<feature> -b <feature>

Which both seem to do the same thing (haven't looked at the subtree
bash - guessing it does exactly the filter-branch). The issue is that
it removes the directory tree (so obviously merges wouldn't work). I'm
thinking some type of filter-branch --index-filter with a cherry pick
(or similar) should work...?

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-07-05  9:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-04 16:45 split directories into branches shawn wilson
2016-07-04 17:39 ` Konstantin Khomoutov
2016-07-04 18:15   ` shawn wilson
2016-07-04 18:29     ` Konstantin Khomoutov
2016-07-04 21:03       ` shawn wilson
2016-07-04 22:10         ` Andreas Schwab
2016-07-04 23:30           ` shawn wilson
2016-07-04 23:31             ` shawn wilson
2016-07-05  9:56         ` Konstantin Khomoutov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).