git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: GIT and the current -stable

From
RHRene Herman <rene.herman@gmail.com>
Date
Apr 14, 2007, 07:13 UTC
Message-ID
<46207F1D.3010302@gmail.com>
In-Reply-To
<7vfy73bhik.fsf@assigned-by-dhcp.cox.net>
On 04/14/2007 08:24 AM, Junio C Hamano wrote:
Show 16 quoted lines
> 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.
Previous: Junio C HamanoNext: Greg KH
Message 3 of 16 in “GIT and the current -stable”
  1. Rene HermanApr 14, 2007
  2. Junio C HamanoApr 14, 2007
  3. Rene HermanApr 14, 2007
  4. Greg KHApr 14, 2007
  5. Linus TorvaldsApr 14, 2007
  6. Gerb StralkoApr 14, 2007
  7. Chris WrightApr 14, 2007
  8. Rene HermanApr 14, 2007
  9. Rene HermanApr 14, 2007
  10. Julian PhillipsApr 15, 2007
  11. Brian GernhardtApr 14, 2007
  12. Chris WrightApr 14, 2007
  13. Brian GernhardtApr 14, 2007
  14. Chris WrightApr 14, 2007
  15. Julian PhillipsApr 14, 2007
  16. Uwe Kleine-KönigApr 14, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.