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

Re: checkout/branch needs some extra safety around the --track option

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 15, 2011, 20:04 UTC
Message-ID
<7vfwrpnjxr.fsf@alter.siamese.dyndns.org>
In-Reply-To
<201102151852.03881.johan@herland.net>
Johan Herland <johan@herland.net> writes:
Show 6 quoted lines
> 1. When given "--track", branch/checkout should verify that the tracked 
> branch is indeed a branch (preferably a remote branch, although I guess 
> tracking a local branch can make sense in some situations). At least, 
> it should deny tracking a _tag_. Tracking a tag simply does not make 
> sense at all (unless you expect the tag to move, in which case it 
> should be a branch and not a tag).
Sensible, I think.
Previous: Johan HerlandNext: Johan Herland
Message 2 of 7 in “checkout/branch needs some extra safety around the --track option”
  1. Johan HerlandFeb 15, 2011
  2. Junio C HamanoFeb 15, 2011
  3. branch/checkout --track: Ensure that upstream branch is indeed a branchJohan Herland, Feb 16, 2011
  4. Junio C HamanoFeb 16, 2011
  5. branch/checkout --track: Ensure that upstream branch is indeed a branchJohan Herland, Feb 16, 2011
  6. Martin von ZweigbergkFeb 18, 2011
  7. Junio C HamanoFeb 18, 2011

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.