From: Rene Herman <rene.herman@gmail.com>
To: Junio C Hamano <junkio@cox.net>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
Greg KH <greg@kroah.com>,
git@vger.kernel.org
Subject: Re: GIT and the current -stable
Date: Sat, 14 Apr 2007 09:13:33 +0200 [thread overview]
Message-ID: <46207F1D.3010302@gmail.com> (raw)
In-Reply-To: <7vfy73bhik.fsf@assigned-by-dhcp.cox.net>
On 04/14/2007 08:24 AM, Junio C Hamano wrote:
> I think adding these lines to .git/config would do the trick,
> after you have done the "checkout -b v2.6.20 v2.6.20" step:
>
> [branch "v2.6.20"]
> remote = stable
> merge = refs/heads/master
> [remote "stable"]
> url = git://git.kernel.org/.../stable/linux-2.6.20.y.git
> fetch = refs/heads/master
>
> provided if stable team forks v2.6.20.y history off of Linus's
> v2.6.20.
>
> With the above configuration, anytime you say "git pull" while
> on your v2.6.20 branch will fetch from "stable" and merge their
> 'master' branch in your current branch (i.e. v2.6.20 branch).
Yes, this does seem to work, thanks. Was thrown of a bit by having named the
branch "v2.6.20". GIT and I disagree what it is that I want to happen when I
say "git checkout v2.6.20" if v2.6.20 is also a tag on master.
The pull behaviour does not follow further branches:
rene@7ixe4:~/src/linux/local$ git branch
* 2.6.20
master
rene@7ixe4:~/src/linux/local$ git checkout -b 7ixe4
Switched to a new branch "7ixe4"
rene@7ixe4:~/src/linux/local$ git pull
Warning: No merge candidate found because value of config option
"branch.7ixe4.merge" does not match any remote branch fetched.
No changes.
This might in practice not be all bad in fact, and I suppose I understand
how to "fix" it along the same lines as above.
But as happens very frequently with GIT, I get the feeling that I just don't
understand how it's all intended to be used. It seems that what I wanted
above is not standard? What would be expected use of the stable GIT repo?
Just cloning that outright into another repo?
A "GIT WHYTO" from someone with the oversight would be very useful...
Rene.
next prev parent reply other threads:[~2007-04-14 7:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-14 5:36 GIT and the current -stable Rene Herman
2007-04-14 6:24 ` Junio C Hamano
2007-04-14 7:13 ` Rene Herman [this message]
2007-04-14 7:21 ` Greg KH
2007-04-14 17:34 ` Linus Torvalds
2007-04-14 18:45 ` Gerb Stralko
2007-04-14 8:34 ` Chris Wright
2007-04-14 8:54 ` Rene Herman
2007-04-14 23:13 ` Rene Herman
2007-04-15 0:23 ` Julian Phillips
2007-04-14 15:15 ` Brian Gernhardt
2007-04-14 17:19 ` Chris Wright
2007-04-14 17:23 ` Brian Gernhardt
2007-04-14 17:31 ` Chris Wright
2007-04-14 19:07 ` Julian Phillips
2007-04-14 11:56 ` Uwe Kleine-König
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46207F1D.3010302@gmail.com \
--to=rene.herman@gmail.com \
--cc=git@vger.kernel.org \
--cc=greg@kroah.com \
--cc=junkio@cox.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.