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

Re: [PATCH] doc/config: do a better job of introducing 'worktree.guessRemote'

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Jan 6, 2019, 18:19 UTC
Message-ID
<CAPig+cT3k4HVNY8B9bFL0Ty2stGVgzDdTuANDE829Fdj-u6S3Q@mail.gmail.com>
In-Reply-To
<20190106180914.GE25639@hank.intra.tgummerer.com>
On Sun, Jan 6, 2019 at 1:09 PM Thomas Gummerer <t.gummerer@gmail.com> wrote:
Show 21 quoted lines
> On 12/23, Eric Sunshine wrote:
> > The documentation for this option jumps right in with "With `add`",
> > without explaining that `add` is a sub-command of "git worktree".
> > Together with rather odd grammatical structure of the remainder of the
> > sentence, the description can be difficult for newcomers to understand.
> > Clarify by improving the grammar and mentioning "git worktree add"
> > explicitly.
>
> Thanks, this reads much better indeed.  I was briefly wondering if a
> similar change is needed in the documentation for the 'git worktree'
> command itself.  It currently reads:
>
>         With `worktree add <path>`, without `<commit-ish>`, instead
>         of creating a new branch from HEAD, if there exists a tracking
>         branch in exactly one remote matching the basename of `<path>`,
>         base the new branch on the remote-tracking branch, and mark
>         the remote-tracking branch as "upstream" from the new branch.
>
> I do think the documentation for the config option is slightly easier
> to read, especially with your improvements below.  Dunno if it's worth
> adjusting the test in the 'git worktree' documentation as well?

Such a change to git-worktree.txt could be done, though I think it's outside the scope of this patch since "With ...," is not nearly so confusing in the context of git-worktree.txt given that the reader _knows_ that he/she is reading (exclusively) about "git worktree". Also, almost all of the options in git-worktree.txt are phrased "With ...,", so such a change would be more all-encompassing.

Previous: Thomas Gummerer
Message 3 of 3 in “doc/config: do a better job of introducing 'worktree.guessRemote'”
  1. doc/config: do a better job of introducing 'worktree.guessRemote'Eric Sunshine, Dec 23, 2018
  2. Thomas GummererJan 6, 2019
  3. Eric SunshineJan 6, 2019

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.