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

Re: merging initial part of a branch?

From
Junio C Hamano <junkio@cox.net>
Date
Jan 12, 2006, 01:47 UTC
Message-ID
<7vmzi2i5eu.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060112005531.GB14599@fieldses.org>
"J. Bruce Fields" <bfields@fieldses.org> writes:
Show 10 quoted lines
>> I haven't tried this for some time, but I presume
>> 
>> 	$ git pull linus tag v2.6.15
>> 
>> would do what you want.
>
> Yep!  Thanks.  The only documentation I can find for this is a slightly
> obscure bit in the git-pull man page which lists this as a "short-cut"
> notation.  What is it a shortcut for?  Is it possible to specify an
> arbitrary commit in place of the "tag v2.6.15" somehow?

The phrase "short-hand" refers to "linus" in the above example. I.e. the name of the file in $GIT_DIR/remotes that records the URL (among other things).

You can only say either "branchname" or "tag tagname" for pull, because of the way underlying git native protocol works (it may not be too hard to extend it, but I haven't looked into it nor particularly interested in looking into it at the moment).

Previous: J. Bruce FieldsNext: J. Bruce Fields
Message 8 of 17 in “merging initial part of a branch?”
  1. J. Bruce FieldsJan 11, 2006
  2. Junio C HamanoJan 11, 2006
  3. Andreas EricssonJan 12, 2006
  4. Junio C HamanoJan 12, 2006
  5. Andreas EricssonJan 12, 2006
  6. J. Bruce FieldsJan 12, 2006
  7. J. Bruce FieldsJan 12, 2006
  8. Junio C HamanoJan 12, 2006
  9. J. Bruce FieldsJan 13, 2006
  10. Junio C HamanoJan 13, 2006
  11. J. Bruce FieldsJan 13, 2006
  12. Junio C HamanoJan 13, 2006
  13. J. Bruce FieldsJan 13, 2006
  14. Junio C HamanoJan 15, 2006
  15. J. Bruce FieldsJan 16, 2006
  16. Junio C HamanoJan 16, 2006
  17. J. Bruce FieldsJan 23, 2006

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.