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

Re: What's cooking in git.git (Feb 2010, #05; Sun, 21)

From
Jeff King <peff@peff.net>
Date
Feb 22, 2010, 10:37 UTC
Message-ID
<20100222103709.GA16531@coredump.intra.peff.net>
In-Reply-To
<alpine.DEB.1.00.1002221108100.20986@pacific.mpi-cbg.de>
On Mon, Feb 22, 2010 at 11:08:51AM +0100, Johannes Schindelin wrote:
Show 6 quoted lines
> > You mean this one?
> > 
> >   http://permalink.gmane.org/gmane.comp.version-control.git/108330
> 
> Yes, indeed. But it was applied, I just did not find it due to the name, 
> which is not intuitive to this developer.

It is also slightly overkill if all you want to do is pull Junio's topics from pu (I found myself always forgetting the right incantation of command line options). The script posted by Björn is much shorter, but recovers all topic branches. If you just want to pull one, I think:

  #!/bin/sh
  sha1=`git log --oneline --first-parent origin/pu |
        grep -m 1 "Merge branch '$1'" |
        cut -d ' ' -f1`
  git branch ${2:-$1} $sha1^2

should work. Though I have not been using it very long myself, so it is possible that it has bugs. :)

-Peff
Previous: Johannes SchindelinNext: Jeff King
Message 10 of 13 in “What's cooking in git.git (Feb 2010, #05; Sun, 21)”
  1. Junio C HamanoFeb 22, 2010
  2. Larry D'AnnaFeb 22, 2010
  3. Johannes SixtFeb 22, 2010
  4. Junio C HamanoFeb 22, 2010
  5. Björn GustavssonFeb 22, 2010
  6. Johannes SchindelinFeb 22, 2010
  7. Thomas RastFeb 22, 2010
  8. Thomas RastFeb 22, 2010
  9. Johannes SchindelinFeb 22, 2010
  10. Jeff KingFeb 22, 2010
  11. Jeff KingFeb 22, 2010
  12. Junio C HamanoFeb 22, 2010
  13. Jeff KingFeb 23, 2010

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.