From: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
To: "Martin Ågren" <martin.agren@gmail.com>,
"Todd Zullinger" <tmz@pobox.com>
Cc: Git Mailing List <git@vger.kernel.org>,
Junio C Hamano <gitster@pobox.com>
Subject: Re: [PATCH] branch doc: remove --set-upstream from synopsis
Date: Thu, 16 Nov 2017 16:40:20 +0530 [thread overview]
Message-ID: <493127ce-2596-fb93-993d-042097ca19bc@gmail.com> (raw)
In-Reply-To: <CAN0heSpUm=U7aGVtRoUoGZCvNsOZ04wLqTOx8kMvZEa8GQUiLQ@mail.gmail.com>
On Thursday 16 November 2017 04:19 PM, Martin Ågren wrote:
> On 16 November 2017 at 08:46, Todd Zullinger <tmz@pobox.com> wrote:
>> diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt
>> index d6587c5e96..159ca388f1 100644
>> --- a/Documentation/git-branch.txt
>> +++ b/Documentation/git-branch.txt
>> @@ -14,7 +14,7 @@ SYNOPSIS
>> [(--merged | --no-merged) [<commit>]]
>> [--contains [<commit]] [--no-contains [<commit>]]
>> [--points-at <object>] [--format=<format>] [<pattern>...]
>> -'git branch' [--set-upstream | --track | --no-track] [-l] [-f] <branchname> [<start-point>]
>> +'git branch' [--track | --no-track] [-l] [-f] <branchname> [<start-point>]
>
> Personally, I think this is an improvement.
>
I didn't remove it as there wasn't a "strong" consensus that this should
go off the "Synopsis" at that time. If removing it from the synopsis
seems to be better than leaving it, then lets do it. Further, I think we
should make this some kind of "guideline" in this project to remain
consistent. Something like,
* If you deprecate an option of a command to an extent that it's not
usable at all, remove that option from the "Synopsis" of the
concerned "Documentation".
possibly to "Documentation/SubmittingPatches" or at least keep this as
some form of undocumented guideline if this might make
"Documentation/SubmittingPatches" unnecessarily clumsy. I dunno, was
just thinking out loud.
>> 'git branch' (--set-upstream-to=<upstream> | -u <upstream>) [<branchname>]
>> 'git branch' --unset-upstream [<branchname>]
>> 'git branch' (-m | -M) [<oldbranch>] <newbranch>
>> @@ -86,7 +86,7 @@ OPTIONS
>> --delete::
>> Delete a branch. The branch must be fully merged in its
>> upstream branch, or in `HEAD` if no upstream was set with
>> - `--track` or `--set-upstream`.
>> + `--track` or `--set-upstream-to`.
>
> Good catch.
>
Yep. Thanks for catching this.
---
Kaartic
next prev parent reply other threads:[~2017-11-16 11:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-16 7:46 [PATCH] branch doc: remove --set-upstream from synopsis Todd Zullinger
2017-11-16 10:49 ` Martin Ågren
2017-11-16 11:10 ` Kaartic Sivaraam [this message]
2017-11-16 17:01 ` Todd Zullinger
2017-11-17 1:18 ` Junio C Hamano
2017-11-17 1:36 ` Todd Zullinger
2017-11-17 3:02 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=493127ce-2596-fb93-993d-042097ca19bc@gmail.com \
--to=kaartic.sivaraam@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=martin.agren@gmail.com \
--cc=tmz@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.