git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* keeping -RT and mainline tree in single repository
@ 2011-04-08  7:03 Tharindu Rukshan Bamunuarachchi
  2011-04-08  7:52 ` Ramkumar Ramachandra
  0 siblings, 1 reply; 2+ messages in thread
From: Tharindu Rukshan Bamunuarachchi @ 2011-04-08  7:03 UTC (permalink / raw)
  To: git

hi All,

at the moment i am pulling latest source from
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
and keep my driver development up-to-date with mainline.

i need to port my driver to -rt also.

1. do i have to pull and use another git repository from RT GIT. i.e.
git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git
2. how can i use current GIT repository to keep sync with both -RT and
mainline ?
3. how can i pull latest commits without switching between branches. (
i hv two branches ... master & my-own-hacked). Every time i switch to
master and pull latest code.

Really appreciate if you can point howto/resource ?

Thanks in advance
__
Tharindu "R" Bamunuarachchi.

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

* Re: keeping -RT and mainline tree in single repository
  2011-04-08  7:03 keeping -RT and mainline tree in single repository Tharindu Rukshan Bamunuarachchi
@ 2011-04-08  7:52 ` Ramkumar Ramachandra
  0 siblings, 0 replies; 2+ messages in thread
From: Ramkumar Ramachandra @ 2011-04-08  7:52 UTC (permalink / raw)
  To: Tharindu Rukshan Bamunuarachchi; +Cc: git

Hi Tharindu,

Tharindu Rukshan Bamunuarachchi writes:
> at the moment i am pulling latest source from
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> and keep my driver development up-to-date with mainline.
> 
> i need to port my driver to -rt also.
> 
> 1. do i have to pull and use another git repository from RT GIT. i.e.
> git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git
> 2. how can i use current GIT repository to keep sync with both -RT and
> mainline ?

You just need two remotes -- simply run `git remote add rt
git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git`
to add this remote.  Then, `git fetch --all` to fetch from all
remotes.

> 3. how can i pull latest commits without switching between branches. (
> i hv two branches ... master & my-own-hacked). Every time i switch to
> master and pull latest code.

A `pull` is a `fetch` plus an additional action depending on the
switches and the situation (merge, merge with rebase, ff merge etc).
You can run `fetch`, irrespective of the branch you're on.  However,
you need to switch branches to perform a `merge` operation, because of
the way it works.

Hope that helps.

-- Ram

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

end of thread, other threads:[~2011-04-08  7:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-08  7:03 keeping -RT and mainline tree in single repository Tharindu Rukshan Bamunuarachchi
2011-04-08  7:52 ` Ramkumar Ramachandra

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).