From: Eric Sunshine Date: Sun, 10 Feb 2019 08:37:26 GMT Subject: Re: [PATCH v2 15/19] switch: no implicit dwim, use --guess to dwim Message-ID: In-Reply-To: <20190208090401.14793-16-pclouds@gmail.com> On Fri, Feb 8, 2019 at 4:05 AM Nguyễn Thái Ngọc Duy wrote: > Similar to automatic detach, this behavior could be confusing because > it can sometimes create a new branch without a user asking it to, > especially when the user is still not aware about this feature. > [...] > Signed-off-by: Nguyễn Thái Ngọc Duy > --- > diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt > @@ -31,22 +31,13 @@ branch. > If is not found but there does exist a tracking branch in > +exactly one remote (call it ) with a matching name and > +--no-guess is not specified, treat as equivalent to For consistency with typesetting in the rest of this document, you probably want s/--no-guess/`&`/, though probably not worth a re-roll, though, if this is the only issue with v2. > @@ -182,6 +173,26 @@ explicitly give a name with `-b` in such a case. > +--[no-]guess:: > + If is not found but there does exist a tracking > + branch in exactly one remote (call it ) with a > + matching name, treat as equivalent to Most places in this document typeset these as `` and ``.