I have a profile for my config , additional ebuilds , packages etc but i'm looking for the best way to have a production-profile and a devel-profile.
Better have two separeted git , one for production and one for devel ? or better one git and use branch functions ? With Layman and two git repo i can sync each repo when i want and i can enable/disable one of them to switch from/to production/devel . I don't know how to do that directly with git. Best regards Marco On Thu, 16 Jun 2016 11:46:12 -0700 Bryan Gardiner <b...@khumba.net> wrote: > On Thu, 16 Jun 2016 17:52:26 +0200 > ma...@nucleus.it wrote: > > > Hi, > > i have a layman git profile to store my stuff. > > > > Is possible to force layman -S to sync a specific branch ? > > This is speculation (and a bit of looking at Portage code), since I > haven't tried this. Ignoring Layman, repos.conf repositories support > syncing[1], so does it work to create: > > /etc/portage/repos.conf/myrepo.conf: > > [myrepo] > location = /path/to/local/repo > sync-type = git > sync-uri = git://... > auto-sync = yes > > and just emerge --sync? If you didn't have the local repo already > then it would clone and use master, but I suspect that you can switch > branches afterward, and Portage will simply call "git pull". > > There also seem to be extra options "sync-git-clone-extra-opts" and > "sync-git-pull-extra-opts" for git modules, so you might be able to > set: > > sync-git-clone-extra-opts = --branch somebranch > > to fix initially checking out master. > > HTH, > Bryan > > [1] https://wiki.gentoo.org/wiki/Project:Portage/Sync >