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

Re: [PATCH] branch doc: remove --set-upstream from synopsis

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 17, 2017, 03:02 UTC
Message-ID
<xmqq8tf5txno.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20171117013642.GL3693@zaya.teonanacatl.net>
Todd Zullinger <tmz@pobox.com> writes:
Show 14 quoted lines
> Seeing that the error output when using it tells the user to "use
> '--track' or '--set-upstream-to' instead," should we perhaps also
> remove the --set-upstream entry entirely?  That's reads:
>
>    --set-upstream::
>            As this option had confusing syntax, it is no longer supported.
>            Please use `--track` or `--set-upstream-to` instead.
>
> I don't have a strong opinion either way, but perhaps the error
> message is all that's needed now?  Only users who have a long memory
> or are reading old documentation will call --set-upstream.  I can
> imagine someone coming along in a few months suggesting to remove the
> remaining reference to --set-upstream from the git branch
> documentation for consistency.

Perhaps. But that must happen after we can safely remove the hidden option that is there only to issue an error message. I suspect that we may not quite ready yet (the entry is there to ensure that an "branch --set-upstream $rest" coming from an existing script and trained fingers does not silently use --set-upstream-to thanks to the helpful parse-options UI).

Previous: Todd Zullinger
Message 7 of 7 in “branch doc: remove --set-upstream from synopsis”
  1. branch doc: remove --set-upstream from synopsisTodd Zullinger, Nov 16, 2017
  2. Martin ÅgrenNov 16, 2017
  3. Kaartic SivaraamNov 16, 2017
  4. Todd ZullingerNov 16, 2017
  5. Junio C HamanoNov 17, 2017
  6. Todd ZullingerNov 17, 2017
  7. Junio C HamanoNov 17, 2017

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.