Re: [gentoo-user] Layman and Git branch
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 Gardinerwrote: > 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 >
Re: [gentoo-user] Layman and Git branch
On Thu, 16 Jun 2016 11:46:12 -0700 Bryan Gardinerwrote: > 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 If you're set on using Layman though, does Layman switch back to master on every sync, or is it the initial checkout you're concerned about? Or just a convenience to have Layman switch branches? - Bryan -- khph - file tagging via symlinks pgpAIgqxvX1ZY.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Layman and Git branch
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 -- khph - file tagging via symlinks pgppntJZ9rKPr.pgp Description: OpenPGP digital signature
[gentoo-user] Layman and Git branch
Hi, i have a layman git profile to store my stuff. Is possible to force layman -S to sync a specific branch ?