* how to track multiple upstreams in one repository @ 2009-01-19 2:58 david 2009-01-19 2:14 ` Bryan Donlan ` (2 more replies) 0 siblings, 3 replies; 13+ messages in thread From: david @ 2009-01-19 2:58 UTC (permalink / raw) To: git for linux I want to track both the linus tree and the -stable tree. Ideally I want to be able to do a checkout of tags from either tree from the same directory (along with diffs between items in both trees, etc) I have found documentation on how to clone from each of them, but I haven't found any simple documentation on how to work with both of them. David Lang ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: how to track multiple upstreams in one repository 2009-01-19 2:58 how to track multiple upstreams in one repository david @ 2009-01-19 2:14 ` Bryan Donlan 2009-01-19 3:58 ` david 2009-01-19 2:18 ` A Large Angry SCM 2009-01-19 16:29 ` Julian Phillips 2 siblings, 1 reply; 13+ messages in thread From: Bryan Donlan @ 2009-01-19 2:14 UTC (permalink / raw) To: david; +Cc: git On Sun, Jan 18, 2009 at 06:58:06PM -0800, david@lang.hm wrote: > for linux I want to track both the linus tree and the -stable tree. > Ideally I want to be able to do a checkout of tags from either tree from > the same directory (along with diffs between items in both trees, etc) > > I have found documentation on how to clone from each of them, but I > haven't found any simple documentation on how to work with both of them. After cloning from one: git remote add remotename git://... git fetch remotename You will now have the other repository fetched into your local repository; tags from both will be replicated to your local tags. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: how to track multiple upstreams in one repository 2009-01-19 2:14 ` Bryan Donlan @ 2009-01-19 3:58 ` david 2009-01-19 7:52 ` Ciprian Dorin, Craciun 0 siblings, 1 reply; 13+ messages in thread From: david @ 2009-01-19 3:58 UTC (permalink / raw) To: Bryan Donlan; +Cc: git On Sun, 18 Jan 2009, Bryan Donlan wrote: > On Sun, Jan 18, 2009 at 06:58:06PM -0800, david@lang.hm wrote: >> for linux I want to track both the linus tree and the -stable tree. >> Ideally I want to be able to do a checkout of tags from either tree from >> the same directory (along with diffs between items in both trees, etc) >> >> I have found documentation on how to clone from each of them, but I >> haven't found any simple documentation on how to work with both of them. > > After cloning from one: > git remote add remotename git://... > git fetch remotename > > You will now have the other repository fetched into your local > repository; tags from both will be replicated to your local tags. thanks, given the nature of git I figured it was something really simple, but I just wasn't able to find it. I've forwarded this to the kernel.org webmaster to update the 'how to follow linux development' page David Lang ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: how to track multiple upstreams in one repository 2009-01-19 3:58 ` david @ 2009-01-19 7:52 ` Ciprian Dorin, Craciun 2009-01-20 3:34 ` Greg KH 0 siblings, 1 reply; 13+ messages in thread From: Ciprian Dorin, Craciun @ 2009-01-19 7:52 UTC (permalink / raw) To: david; +Cc: Bryan Donlan, git [-- Attachment #1: Type: text/plain, Size: 1304 bytes --] On Mon, Jan 19, 2009 at 5:58 AM, <david@lang.hm> wrote: > On Sun, 18 Jan 2009, Bryan Donlan wrote: > >> On Sun, Jan 18, 2009 at 06:58:06PM -0800, david@lang.hm wrote: >>> >>> for linux I want to track both the linus tree and the -stable tree. >>> Ideally I want to be able to do a checkout of tags from either tree from >>> the same directory (along with diffs between items in both trees, etc) >>> >>> I have found documentation on how to clone from each of them, but I >>> haven't found any simple documentation on how to work with both of them. >> >> After cloning from one: >> git remote add remotename git://... >> git fetch remotename >> >> You will now have the other repository fetched into your local >> repository; tags from both will be replicated to your local tags. > > thanks, given the nature of git I figured it was something really simple, > but I just wasn't able to find it. > > I've forwarded this to the kernel.org webmaster to update the 'how to follow > linux development' page > > David Lang I use something even simpler, please see the attached .git/config file that I use. It also uses remote branches, and rewrites the refs to something like: stable/v2.6.25/master or torvalds/v2.6/master. Also in order to fetch them I use git fetch stable/v2.6.25 Ciprian Craciun. [-- Attachment #2: config --] [-- Type: application/octet-stream, Size: 1772 bytes --] [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [user] name = Ciprian Dorin Craciun email = ciprian.craciun@gmail.com [url "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/"] insteadOf = torvalds: [url "git://git.kernel.org/pub/scm/linux/kernel/git/stable/"] insteadOf = stable: [remote "torvalds/v2.6"] url = torvalds:linux-2.6.git fetch = refs/heads/master:refs/heads/torvalds/v2.6/master [remote "stable/v2.6.17"] url = stable:linux-2.6.17.y.git fetch = refs/heads/master:refs/heads/stable/v2.6.17/master [remote "stable/v2.6.18"] url = stable:linux-2.6.18.y.git fetch = refs/heads/master:refs/heads/stable/v2.6.18/master [remote "stable/v2.6.19"] url = stable:linux-2.6.19.y.git fetch = refs/heads/master:refs/heads/stable/v2.6.19/master [remote "stable/v2.6.20"] url = stable:linux-2.6.20.y.git fetch = refs/heads/master:refs/heads/stable/v2.6.20/master [remote "stable/v2.6.21"] url = stable:linux-2.6.21.y.git fetch = refs/heads/master:refs/heads/stable/v2.6.21/master [remote "stable/v2.6.22"] url = stable:linux-2.6.22.y.git fetch = refs/heads/master:refs/heads/stable/v2.6.22/master [remote "stable/v2.6.23"] url = stable:linux-2.6.23.y.git fetch = refs/heads/master:refs/heads/stable/v2.6.23/master [remote "stable/v2.6.24"] url = stable:linux-2.6.24.y.git fetch = refs/heads/master:refs/heads/stable/v2.6.24/master [remote "stable/v2.6.25"] url = stable:linux-2.6.25.y.git fetch = refs/heads/master:refs/heads/stable/v2.6.25/master [remote "stable/v2.6.26"] url = stable:linux-2.6.26.y.git fetch = refs/heads/master:refs/heads/stable/v2.6.26/master [remote "stable/v2.6.27"] url = stable:linux-2.6.27.y.git fetch = refs/heads/master:refs/heads/stable/v2.6.27/master ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: how to track multiple upstreams in one repository 2009-01-19 7:52 ` Ciprian Dorin, Craciun @ 2009-01-20 3:34 ` Greg KH 2009-01-20 7:29 ` Ciprian Dorin, Craciun 0 siblings, 1 reply; 13+ messages in thread From: Greg KH @ 2009-01-20 3:34 UTC (permalink / raw) To: Ciprian Dorin, Craciun; +Cc: david, Bryan Donlan, git On Mon, Jan 19, 2009 at 09:52:16AM +0200, Ciprian Dorin, Craciun wrote: > I use something even simpler, please see the attached .git/config > file that I use. It also uses remote branches, and rewrites the refs > to something like: stable/v2.6.25/master or torvalds/v2.6/master. Also > in order to fetch them I use git fetch stable/v2.6.25 You all do know that all of the -stable trees are automatically kept in one repo on kernel.org, so you don't have to jump through all of these hoops, right? confused, greg k-h ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: how to track multiple upstreams in one repository 2009-01-20 3:34 ` Greg KH @ 2009-01-20 7:29 ` Ciprian Dorin, Craciun 2009-01-20 12:03 ` Miklos Vajna 0 siblings, 1 reply; 13+ messages in thread From: Ciprian Dorin, Craciun @ 2009-01-20 7:29 UTC (permalink / raw) To: Greg KH; +Cc: david, Bryan Donlan, git On Tue, Jan 20, 2009 at 5:34 AM, Greg KH <greg@kroah.com> wrote: > On Mon, Jan 19, 2009 at 09:52:16AM +0200, Ciprian Dorin, Craciun wrote: >> I use something even simpler, please see the attached .git/config >> file that I use. It also uses remote branches, and rewrites the refs >> to something like: stable/v2.6.25/master or torvalds/v2.6/master. Also >> in order to fetch them I use git fetch stable/v2.6.25 > > You all do know that all of the -stable trees are automatically kept in > one repo on kernel.org, so you don't have to jump through all of these > hoops, right? > > confused, > > greg k-h :) This is something that escaped me... Could you give me the exact git url for this repository? (on kernel.org I'm not able to find it, just the current one...) Thanks, Ciprian Craciun. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: how to track multiple upstreams in one repository 2009-01-20 7:29 ` Ciprian Dorin, Craciun @ 2009-01-20 12:03 ` Miklos Vajna 2009-01-21 16:02 ` Ciprian Dorin, Craciun 0 siblings, 1 reply; 13+ messages in thread From: Miklos Vajna @ 2009-01-20 12:03 UTC (permalink / raw) To: Ciprian Dorin, Craciun; +Cc: Greg KH, david, Bryan Donlan, git [-- Attachment #1: Type: text/plain, Size: 375 bytes --] On Tue, Jan 20, 2009 at 09:29:13AM +0200, "Ciprian Dorin, Craciun" <ciprian.craciun@gmail.com> wrote: > :) This is something that escaped me... Could you give me the > exact git url for this repository? (on kernel.org I'm not able to find > it, just the current one...) git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6-stable.git Have you tried this one? [-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: how to track multiple upstreams in one repository 2009-01-20 12:03 ` Miklos Vajna @ 2009-01-21 16:02 ` Ciprian Dorin, Craciun 2009-01-21 16:11 ` Greg KH 0 siblings, 1 reply; 13+ messages in thread From: Ciprian Dorin, Craciun @ 2009-01-21 16:02 UTC (permalink / raw) To: Miklos Vajna; +Cc: Greg KH, david, Bryan Donlan, git On Tue, Jan 20, 2009 at 2:03 PM, Miklos Vajna <vmiklos@frugalware.org> wrote: > On Tue, Jan 20, 2009 at 09:29:13AM +0200, "Ciprian Dorin, Craciun" <ciprian.craciun@gmail.com> wrote: >> :) This is something that escaped me... Could you give me the >> exact git url for this repository? (on kernel.org I'm not able to find >> it, just the current one...) > > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6-stable.git > > Have you tried this one? Ok... I'm ashamed... :) :) This is exactly what (we all) were looking for... Sorry. Just one curiosity: is this older (I mean if it was created) than when 2.6.18 or 19 was released? Because at that time I've searched for such a repository, didn't found it and hacked the config as I've said previously... Ciprian Craciun. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: how to track multiple upstreams in one repository 2009-01-21 16:02 ` Ciprian Dorin, Craciun @ 2009-01-21 16:11 ` Greg KH 0 siblings, 0 replies; 13+ messages in thread From: Greg KH @ 2009-01-21 16:11 UTC (permalink / raw) To: Ciprian Dorin, Craciun; +Cc: Miklos Vajna, david, Bryan Donlan, git On Wed, Jan 21, 2009 at 06:02:51PM +0200, Ciprian Dorin, Craciun wrote: > On Tue, Jan 20, 2009 at 2:03 PM, Miklos Vajna <vmiklos@frugalware.org> wrote: > > On Tue, Jan 20, 2009 at 09:29:13AM +0200, "Ciprian Dorin, Craciun" <ciprian.craciun@gmail.com> wrote: > >> :) This is something that escaped me... Could you give me the > >> exact git url for this repository? (on kernel.org I'm not able to find > >> it, just the current one...) > > > > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6-stable.git > > > > Have you tried this one? > > Ok... I'm ashamed... :) :) This is exactly what (we all) were > looking for... Sorry. > > Just one curiosity: is this older (I mean if it was created) than > when 2.6.18 or 19 was released? Because at that time I've searched for > such a repository, didn't found it and hacked the config as I've said > previously... Probably not, but I really don't remember when it was created, sorry. thanks, greg k-h ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: how to track multiple upstreams in one repository 2009-01-19 2:58 how to track multiple upstreams in one repository david 2009-01-19 2:14 ` Bryan Donlan @ 2009-01-19 2:18 ` A Large Angry SCM 2009-01-19 16:29 ` Julian Phillips 2 siblings, 0 replies; 13+ messages in thread From: A Large Angry SCM @ 2009-01-19 2:18 UTC (permalink / raw) To: david; +Cc: git [-- Attachment #1: Type: text/plain, Size: 461 bytes --] david@lang.hm wrote: > for linux I want to track both the linus tree and the -stable tree. > Ideally I want to be able to do a checkout of tags from either tree from > the same directory (along with diffs between items in both trees, etc) > > I have found documentation on how to clone from each of them, but I > haven't found any simple documentation on how to work with both of them. Attached are what I use. It's not pretty but it's works for me; YMMV. [-- Attachment #2: fred.sh --] [-- Type: application/x-shellscript, Size: 432 bytes --] [-- Attachment #3: fred_history --] [-- Type: text/plain, Size: 2334 bytes --] export GIT_COMMITTER_NAME="@" export GIT_AUTHOR_NAME="@" ./fred.sh git://git.kernel.org/pub/scm/git/git.git git/git ./fred.sh git://git.kernel.org/pub/scm/gitk/gitk.git gitk/gitk ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/sparse.git torvalds/sparse ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git torvalds/linux-2.6 ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.11.y.git stable/linux-2.6.11.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.12.y.git stable/linux-2.6.12.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.13.y.git stable/linux-2.6.13.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.14.y.git stable/linux-2.6.14.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.15.y.git stable/linux-2.6.15.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.16.y.git stable/linux-2.6.16.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.17.y.git stable/linux-2.6.17.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.18.y.git stable/linux-2.6.18.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.19.y.git stable/linux-2.6.19.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.20.y.git stable/linux-2.6.20.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.21.y.git stable/linux-2.6.21.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.22.y.git stable/linux-2.6.22.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.23.y.git stable/linux-2.6.23.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.24.y.git stable/linux-2.6.24.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.25.y.git stable/linux-2.6.25.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.26.y.git stable/linux-2.6.26.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.27.y.git stable/linux-2.6.27.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.28.y.git stable/linux-2.6.28.y ./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git tglx/history ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: how to track multiple upstreams in one repository 2009-01-19 2:58 how to track multiple upstreams in one repository david 2009-01-19 2:14 ` Bryan Donlan 2009-01-19 2:18 ` A Large Angry SCM @ 2009-01-19 16:29 ` Julian Phillips 2009-01-19 21:08 ` david 2 siblings, 1 reply; 13+ messages in thread From: Julian Phillips @ 2009-01-19 16:29 UTC (permalink / raw) To: david; +Cc: git On Sun, 18 Jan 2009, david@lang.hm wrote: > for linux I want to track both the linus tree and the -stable tree. Ideally I > want to be able to do a checkout of tags from either tree from the same > directory (along with diffs between items in both trees, etc) > > I have found documentation on how to clone from each of them, but I haven't > found any simple documentation on how to work with both of them. You could always just use git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6-stable.git ? It already contains both the linus tree and all the stable trees ... > > David Lang > -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- Julian --- Flattery is like cologne -- to be smelled, but not swallowed. -- Josh Billings ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: how to track multiple upstreams in one repository 2009-01-19 16:29 ` Julian Phillips @ 2009-01-19 21:08 ` david 2009-01-19 20:45 ` Julian Phillips 0 siblings, 1 reply; 13+ messages in thread From: david @ 2009-01-19 21:08 UTC (permalink / raw) To: Julian Phillips; +Cc: git On Mon, 19 Jan 2009, Julian Phillips wrote: > On Sun, 18 Jan 2009, david@lang.hm wrote: > >> for linux I want to track both the linus tree and the -stable tree. Ideally >> I want to be able to do a checkout of tags from either tree from the same >> directory (along with diffs between items in both trees, etc) >> >> I have found documentation on how to clone from each of them, but I haven't >> found any simple documentation on how to work with both of them. > > You could always just use > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6-stable.git ? > It already contains both the linus tree and all the stable trees ... I know it contains the releases, but does it contain the -rc trees? David Lang ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: how to track multiple upstreams in one repository 2009-01-19 21:08 ` david @ 2009-01-19 20:45 ` Julian Phillips 0 siblings, 0 replies; 13+ messages in thread From: Julian Phillips @ 2009-01-19 20:45 UTC (permalink / raw) To: david; +Cc: git On Mon, 19 Jan 2009, david@lang.hm wrote: > On Mon, 19 Jan 2009, Julian Phillips wrote: > >> On Sun, 18 Jan 2009, david@lang.hm wrote: >> >> > for linux I want to track both the linus tree and the -stable tree. >> > Ideally I want to be able to do a checkout of tags from either tree from >> > the same directory (along with diffs between items in both trees, etc) >> > >> > I have found documentation on how to clone from each of them, but I >> > haven't found any simple documentation on how to work with both of them. >> >> You could always just use >> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6-stable.git >> ? It already contains both the linus tree and all the stable trees ... > > I know it contains the releases, but does it contain the -rc trees? It seems to contain everything from the main Linus tree as far as I can see from the gitweb (haven't actually used it for kernel work). > > David Lang > > -- Julian --- Stock's Observation: You no sooner get your head above water but what someone pulls your flippers off. ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2009-01-21 16:14 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-01-19 2:58 how to track multiple upstreams in one repository david 2009-01-19 2:14 ` Bryan Donlan 2009-01-19 3:58 ` david 2009-01-19 7:52 ` Ciprian Dorin, Craciun 2009-01-20 3:34 ` Greg KH 2009-01-20 7:29 ` Ciprian Dorin, Craciun 2009-01-20 12:03 ` Miklos Vajna 2009-01-21 16:02 ` Ciprian Dorin, Craciun 2009-01-21 16:11 ` Greg KH 2009-01-19 2:18 ` A Large Angry SCM 2009-01-19 16:29 ` Julian Phillips 2009-01-19 21:08 ` david 2009-01-19 20:45 ` Julian Phillips
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).