{"thread":{"id":"53971","subject":"[PATCH 0/4] git-worktree documentation cleanups","startedAt":"2020-08-03T05:37:17Z","lastAt":"2020-08-04T05:23:16Z","messageCount":20,"participants":["Eric Sunshine","Taylor Blau","Junio C Hamano","Martin Ågren"],"isPatch":true,"patchVersion":1,"patchTotal":4},"messages":[{"id":"402673","messageId":"20200803053612.50095-1-sunshine@sunshineco.com","threadId":"53971","inReplyTo":null,"subject":"[PATCH 0/4] git-worktree documentation cleanups","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2020-08-03T05:36:08Z","receivedAt":"2020-08-03T05:37:17Z","isPatch":true,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"This series fixes some problems I ran across in the git-worktree\ndocumentation while working on another worktree-related topic. Since\nthese fixes are distinct from that topic, I'm submitting them\nseparately.\n\nEric Sunshine (4):\n  git-worktree.txt: employ fixed-width typeface consistently\n  git-worktree.txt: consistently use term \"working tree\"\n  git-worktree.txt: fix minor grammatical issues\n  git-worktree.txt: make start of new sentence more obvious\n\n Documentation/git-worktree.txt | 96 +++++++++++++++++-----------------\n 1 file changed, 48 insertions(+), 48 deletions(-)\n\n-- \n2.28.0.236.gb10cc79966\n\n"},{"id":"402674","messageId":"20200803053612.50095-3-sunshine@sunshineco.com","threadId":"53971","inReplyTo":"20200803053612.50095-1-sunshine@sunshineco.com","subject":"[PATCH 2/4] git-worktree.txt: consistently use term \"working tree\"","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2020-08-03T05:36:10Z","receivedAt":"2020-08-03T05:37:19Z","isPatch":true,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"As originally composed, git-worktree.txt employed a mix of \"worktree\"\nand \"working tree\" which was inconsistent and potentially confusing to\nreaders. bc483285b7 (Documentation/git-worktree: consistently use term\n\"linked working tree\", 2015-07-20) undertook the task of employing the\nterm \"working tree\" consistently throughout the document and avoiding\n\"worktree\" altogether for descriptive text. Since that time, some\ninstances of \"worktree\" have crept back in. Continue the work of\nbc483285b7 by transforming these to \"working tree\", as well.\n\nSigned-off-by: Eric Sunshine <sunshine@sunshineco.com>\n---\n Documentation/git-worktree.txt | 22 +++++++++++-----------\n 1 file changed, 11 insertions(+), 11 deletions(-)\n\ndiff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt\nindex 810fc8b5e1..cd762876f0 100644\n--- a/Documentation/git-worktree.txt\n+++ b/Documentation/git-worktree.txt\n@@ -70,20 +70,20 @@ branches from there if `<branch>` is ambiguous but exists on the\n linkgit:git-config[1].\n +\n If `<commit-ish>` is omitted and neither `-b` nor `-B` nor `--detach` used,\n-then, as a convenience, the new worktree is associated with a branch\n+then, as a convenience, the new working tree is associated with a branch\n (call it `<branch>`) named after `$(basename <path>)`.  If `<branch>`\n doesn't exist, a new branch based on HEAD is automatically created as\n if `-b <branch>` was given.  If `<branch>` does exist, it will be\n-checked out in the new worktree, if it's not checked out anywhere\n-else, otherwise the command will refuse to create the worktree (unless\n+checked out in the new working tree, if it's not checked out anywhere\n+else, otherwise the command will refuse to create the working tree (unless\n `--force` is used).\n \n list::\n \n-List details of each worktree.  The main worktree is listed first, followed by\n-each of the linked worktrees.  The output details include if the worktree is\n-bare, the revision currently checked out, and the branch currently checked out\n-(or \"detached HEAD\" if none).\n+List details of each working tree.  The main working tree is listed first,\n+followed by each of the linked working trees.  The output details include\n+if the working tree is bare, the revision currently checked out, and the\n+branch currently checked out (or \"detached HEAD\" if none).\n \n lock::\n \n@@ -202,7 +202,7 @@ This can also be set up as the default behaviour by using the\n \tabsolute.\n +\n If the last path components in the working tree's path is unique among\n-working trees, it can be used to identify worktrees. For example if\n+working trees, it can be used to identify working trees. For example if\n you only have two working trees, at `/abc/def/ghi` and `/abc/def/ggg`,\n then `ghi` or `def/ghi` is enough to point to the former working tree.\n \n@@ -221,7 +221,7 @@ shared.\n \n Refs that are per working tree can still be accessed from another\n working tree via two special paths, `main-worktree` and `worktrees`. The\n-former gives access to per-worktree refs of the main working tree,\n+former gives access to per-working tree refs of the main working tree,\n while the latter to all linked working trees.\n \n For example, `main-worktree/HEAD` or `main-worktree/refs/bisect/good`\n@@ -335,8 +335,8 @@ Porcelain Format\n The porcelain format has a line per attribute.  Attributes are listed with a\n label and value separated by a single space.  Boolean attributes (like `bare`\n and `detached`) are listed as a label only, and are only present if and only\n-if the value is true.  The first attribute of a worktree is always `worktree`,\n-an empty line indicates the end of the record.  For example:\n+if the value is true.  The first attribute of a working tree is always\n+`worktree`, an empty line indicates the end of the record.  For example:\n \n ------------\n $ git worktree list --porcelain\n-- \n2.28.0.236.gb10cc79966\n\n"},{"id":"402675","messageId":"20200803053612.50095-2-sunshine@sunshineco.com","threadId":"53971","inReplyTo":"20200803053612.50095-1-sunshine@sunshineco.com","subject":"[PATCH 1/4] git-worktree.txt: employ fixed-width typeface consistently","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2020-08-03T05:36:09Z","receivedAt":"2020-08-03T05:37:19Z","isPatch":true,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"git-worktree documentation generally does a good job of formatting\nliteral text using a fixed-width typeface, however, some instances of\nunformatted literal text have crept in over time. Fix these.\n\nWhile at it, also fix a few incorrect typefaces resulting from wrong\nchoice of Asciidoc quotes.\n\nSigned-off-by: Eric Sunshine <sunshine@sunshineco.com>\n---\n Documentation/git-worktree.txt | 66 +++++++++++++++++-----------------\n 1 file changed, 33 insertions(+), 33 deletions(-)\n\ndiff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt\nindex 4796c3c05e..810fc8b5e1 100644\n--- a/Documentation/git-worktree.txt\n+++ b/Documentation/git-worktree.txt\n@@ -51,7 +51,7 @@ is linked to the current repository, sharing everything except working\n directory specific files such as HEAD, index, etc. `-` may also be\n specified as `<commit-ish>`; it is synonymous with `@{-1}`.\n +\n-If <commit-ish> is a branch name (call it `<branch>`) and is not found,\n+If `<commit-ish>` is a branch name (call it `<branch>`) and is not found,\n and neither `-b` nor `-B` nor `--detach` are used, but there does\n exist a tracking branch in exactly one remote (call it `<remote>`)\n with a matching name, treat as equivalent to:\n@@ -83,7 +83,7 @@ list::\n List details of each worktree.  The main worktree is listed first, followed by\n each of the linked worktrees.  The output details include if the worktree is\n bare, the revision currently checked out, and the branch currently checked out\n-(or 'detached HEAD' if none).\n+(or \"detached HEAD\" if none).\n \n lock::\n \n@@ -100,7 +100,7 @@ or linked working trees containing submodules cannot be moved.\n \n prune::\n \n-Prune working tree information in $GIT_DIR/worktrees.\n+Prune working tree information in `$GIT_DIR/worktrees`.\n \n remove::\n \n@@ -128,7 +128,7 @@ OPTIONS\n `move` refuses to move a locked working tree unless `--force` is specified\n twice. If the destination is already assigned to some other working tree but is\n missing (for instance, if `<new-path>` was deleted manually), then `--force`\n-allows the move to proceed; use --force twice if the destination is locked.\n+allows the move to proceed; use `--force` twice if the destination is locked.\n +\n `remove` refuses to remove an unclean working tree unless `--force` is used.\n To remove a locked working tree, specify `--force` twice.\n@@ -203,8 +203,8 @@ This can also be set up as the default behaviour by using the\n +\n If the last path components in the working tree's path is unique among\n working trees, it can be used to identify worktrees. For example if\n-you only have two working trees, at \"/abc/def/ghi\" and \"/abc/def/ggg\",\n-then \"ghi\" or \"def/ghi\" is enough to point to the former working tree.\n+you only have two working trees, at `/abc/def/ghi` and `/abc/def/ggg`,\n+then `ghi` or `def/ghi` is enough to point to the former working tree.\n \n REFS\n ----\n@@ -214,24 +214,24 @@ working trees. This section is about the sharing rules and how to access\n refs of one working tree from another.\n \n In general, all pseudo refs are per working tree and all refs starting\n-with \"refs/\" are shared. Pseudo refs are ones like HEAD which are\n-directly under GIT_DIR instead of inside GIT_DIR/refs. There is one\n-exception to this: refs inside refs/bisect and refs/worktree is not\n+with `refs/` are shared. Pseudo refs are ones like HEAD which are\n+directly under `$GIT_DIR` instead of inside `$GIT_DIR/refs`. There is one\n+exception to this: refs inside `refs/bisect` and `refs/worktree` is not\n shared.\n \n Refs that are per working tree can still be accessed from another\n-working tree via two special paths, main-worktree and worktrees. The\n+working tree via two special paths, `main-worktree` and `worktrees`. The\n former gives access to per-worktree refs of the main working tree,\n while the latter to all linked working trees.\n \n-For example, main-worktree/HEAD or main-worktree/refs/bisect/good\n+For example, `main-worktree/HEAD` or `main-worktree/refs/bisect/good`\n resolve to the same value as the main working tree's HEAD and\n-refs/bisect/good respectively. Similarly, worktrees/foo/HEAD or\n-worktrees/bar/refs/bisect/bad are the same as\n-GIT_COMMON_DIR/worktrees/foo/HEAD and\n-GIT_COMMON_DIR/worktrees/bar/refs/bisect/bad.\n+`refs/bisect/good` respectively. Similarly, `worktrees/foo/HEAD` or\n+`worktrees/bar/refs/bisect/bad` are the same as\n+`$GIT_COMMON_DIR/worktrees/foo/HEAD` and\n+`$GIT_COMMON_DIR/worktrees/bar/refs/bisect/bad`.\n \n-To access refs, it's best not to look inside GIT_DIR directly. Instead\n+To access refs, it's best not to look inside `$GIT_DIR` directly. Instead\n use commands such as linkgit:git-rev-parse[1] or linkgit:git-update-ref[1]\n which will handle refs correctly.\n \n@@ -255,7 +255,7 @@ configuration in this file with `git config --worktree`. Older Git\n versions will refuse to access repositories with this extension.\n \n Note that in this file, the exception for `core.bare` and `core.worktree`\n-is gone. If you have them in $GIT_DIR/config before, you must move\n+is gone. If you have them in `$GIT_DIR/config` before, you must move\n them to the `config.worktree` of the main working tree. You may also\n take this opportunity to review and move other configuration that you\n do not want to share to all working trees:\n@@ -268,7 +268,7 @@ do not want to share to all working trees:\n DETAILS\n -------\n Each linked working tree has a private sub-directory in the repository's\n-$GIT_DIR/worktrees directory.  The private sub-directory's name is usually\n+`$GIT_DIR/worktrees` directory.  The private sub-directory's name is usually\n the base name of the linked working tree's path, possibly appended with a\n number to make it unique.  For example, when `$GIT_DIR=/path/main/.git` the\n command `git worktree add /path/other/test-next next` creates the linked\n@@ -276,51 +276,51 @@ working tree in `/path/other/test-next` and also creates a\n `$GIT_DIR/worktrees/test-next` directory (or `$GIT_DIR/worktrees/test-next1`\n if `test-next` is already taken).\n \n-Within a linked working tree, $GIT_DIR is set to point to this private\n+Within a linked working tree, `$GIT_DIR` is set to point to this private\n directory (e.g. `/path/main/.git/worktrees/test-next` in the example) and\n-$GIT_COMMON_DIR is set to point back to the main working tree's $GIT_DIR\n+`$GIT_COMMON_DIR` is set to point back to the main working tree's `$GIT_DIR`\n (e.g. `/path/main/.git`). These settings are made in a `.git` file located at\n the top directory of the linked working tree.\n \n Path resolution via `git rev-parse --git-path` uses either\n-$GIT_DIR or $GIT_COMMON_DIR depending on the path. For example, in the\n+`$GIT_DIR` or `$GIT_COMMON_DIR` depending on the path. For example, in the\n linked working tree `git rev-parse --git-path HEAD` returns\n `/path/main/.git/worktrees/test-next/HEAD` (not\n `/path/other/test-next/.git/HEAD` or `/path/main/.git/HEAD`) while `git\n rev-parse --git-path refs/heads/master` uses\n-$GIT_COMMON_DIR and returns `/path/main/.git/refs/heads/master`,\n-since refs are shared across all working trees, except refs/bisect and\n-refs/worktree.\n+`$GIT_COMMON_DIR` and returns `/path/main/.git/refs/heads/master`,\n+since refs are shared across all working trees, except `refs/bisect` and\n+`refs/worktree`.\n \n See linkgit:gitrepository-layout[5] for more information. The rule of\n thumb is do not make any assumption about whether a path belongs to\n-$GIT_DIR or $GIT_COMMON_DIR when you need to directly access something\n-inside $GIT_DIR. Use `git rev-parse --git-path` to get the final path.\n+`$GIT_DIR` or `$GIT_COMMON_DIR` when you need to directly access something\n+inside `$GIT_DIR`. Use `git rev-parse --git-path` to get the final path.\n \n-If you manually move a linked working tree, you need to update the 'gitdir' file\n+If you manually move a linked working tree, you need to update the `gitdir` file\n in the entry's directory. For example, if a linked working tree is moved\n to `/newpath/test-next` and its `.git` file points to\n `/path/main/.git/worktrees/test-next`, then update\n `/path/main/.git/worktrees/test-next/gitdir` to reference `/newpath/test-next`\n instead.\n \n-To prevent a $GIT_DIR/worktrees entry from being pruned (which\n+To prevent a `$GIT_DIR/worktrees` entry from being pruned (which\n can be useful in some situations, such as when the\n entry's working tree is stored on a portable device), use the\n `git worktree lock` command, which adds a file named\n-'locked' to the entry's directory. The file contains the reason in\n+`locked` to the entry's directory. The file contains the reason in\n plain text. For example, if a linked working tree's `.git` file points\n to `/path/main/.git/worktrees/test-next` then a file named\n `/path/main/.git/worktrees/test-next/locked` will prevent the\n `test-next` entry from being pruned.  See\n linkgit:gitrepository-layout[5] for details.\n \n-When extensions.worktreeConfig is enabled, the config file\n+When `extensions.worktreeConfig` is enabled, the config file\n `.git/worktrees/<id>/config.worktree` is read after `.git/config` is.\n \n LIST OUTPUT FORMAT\n ------------------\n-The worktree list command has two output formats.  The default format shows the\n+The `worktree list` command has two output formats. The default format shows the\n details on a single line with columns.  For example:\n \n ------------\n@@ -333,8 +333,8 @@ $ git worktree list\n Porcelain Format\n ~~~~~~~~~~~~~~~~\n The porcelain format has a line per attribute.  Attributes are listed with a\n-label and value separated by a single space.  Boolean attributes (like 'bare'\n-and 'detached') are listed as a label only, and are only present if and only\n+label and value separated by a single space.  Boolean attributes (like `bare`\n+and `detached`) are listed as a label only, and are only present if and only\n if the value is true.  The first attribute of a worktree is always `worktree`,\n an empty line indicates the end of the record.  For example:\n \n-- \n2.28.0.236.gb10cc79966\n\n"},{"id":"402676","messageId":"20200803053612.50095-4-sunshine@sunshineco.com","threadId":"53971","inReplyTo":"20200803053612.50095-1-sunshine@sunshineco.com","subject":"[PATCH 3/4] git-worktree.txt: fix minor grammatical issues","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2020-08-03T05:36:11Z","receivedAt":"2020-08-03T05:37:20Z","isPatch":true,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"Fix a few grammatical problems to improve the reading experience.\n\nSigned-off-by: Eric Sunshine <sunshine@sunshineco.com>\n---\n Documentation/git-worktree.txt | 18 +++++++++---------\n 1 file changed, 9 insertions(+), 9 deletions(-)\n\ndiff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt\nindex cd762876f0..49422454d1 100644\n--- a/Documentation/git-worktree.txt\n+++ b/Documentation/git-worktree.txt\n@@ -82,7 +82,7 @@ list::\n \n List details of each working tree.  The main working tree is listed first,\n followed by each of the linked working trees.  The output details include\n-if the working tree is bare, the revision currently checked out, and the\n+whether the working tree is bare, the revision currently checked out, and the\n branch currently checked out (or \"detached HEAD\" if none).\n \n lock::\n@@ -171,7 +171,7 @@ This can also be set up as the default behaviour by using the\n --lock::\n \tKeep the working tree locked after creation. This is the\n \tequivalent of `git worktree lock` after `git worktree add`,\n-\tbut without race condition.\n+\tbut without a race condition.\n \n -n::\n --dry-run::\n@@ -202,21 +202,21 @@ This can also be set up as the default behaviour by using the\n \tabsolute.\n +\n If the last path components in the working tree's path is unique among\n-working trees, it can be used to identify working trees. For example if\n+working trees, it can be used to identify a working tree. For example if\n you only have two working trees, at `/abc/def/ghi` and `/abc/def/ggg`,\n then `ghi` or `def/ghi` is enough to point to the former working tree.\n \n REFS\n ----\n In multiple working trees, some refs may be shared between all working\n-trees, some refs are local. One example is HEAD is different for all\n-working trees. This section is about the sharing rules and how to access\n+trees and some refs are local. One example is HEAD which is different for each\n+working tree. This section is about the sharing rules and how to access\n refs of one working tree from another.\n \n In general, all pseudo refs are per working tree and all refs starting\n with `refs/` are shared. Pseudo refs are ones like HEAD which are\n-directly under `$GIT_DIR` instead of inside `$GIT_DIR/refs`. There is one\n-exception to this: refs inside `refs/bisect` and `refs/worktree` is not\n+directly under `$GIT_DIR` instead of inside `$GIT_DIR/refs`. There are\n+exceptions, however: refs inside `refs/bisect` and `refs/worktree` are not\n shared.\n \n Refs that are per working tree can still be accessed from another\n@@ -255,7 +255,7 @@ configuration in this file with `git config --worktree`. Older Git\n versions will refuse to access repositories with this extension.\n \n Note that in this file, the exception for `core.bare` and `core.worktree`\n-is gone. If you have them in `$GIT_DIR/config` before, you must move\n+is gone. If they exist in `$GIT_DIR/config`, you must move\n them to the `config.worktree` of the main working tree. You may also\n take this opportunity to review and move other configuration that you\n do not want to share to all working trees:\n@@ -334,7 +334,7 @@ Porcelain Format\n ~~~~~~~~~~~~~~~~\n The porcelain format has a line per attribute.  Attributes are listed with a\n label and value separated by a single space.  Boolean attributes (like `bare`\n-and `detached`) are listed as a label only, and are only present if and only\n+and `detached`) are listed as a label only, and are present only\n if the value is true.  The first attribute of a working tree is always\n `worktree`, an empty line indicates the end of the record.  For example:\n \n-- \n2.28.0.236.gb10cc79966\n\n"},{"id":"402677","messageId":"20200803053612.50095-5-sunshine@sunshineco.com","threadId":"53971","inReplyTo":"20200803053612.50095-1-sunshine@sunshineco.com","subject":"[PATCH 4/4] git-worktree.txt: make start of new sentence more obvious","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2020-08-03T05:36:12Z","receivedAt":"2020-08-03T05:37:21Z","isPatch":true,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"When reading the rendered description of `add`, it's easy to trip over\nand miss the end of one sentence and the start of the next, making it\nseem as if they are part of the same statement, separated only by a\ndash:\n\n    ... specific files such as HEAD, index, etc. - may also be\n    specified as <commit-ish>; it is synonymous with...\n\nThis can be particularly confusing since the thoughts expressed by the\ntwo sentences are unrelated. Reduce the likelihood of confusion by\nmaking it obvious that the two sentences are distinct.\n\nSigned-off-by: Eric Sunshine <sunshine@sunshineco.com>\n---\n Documentation/git-worktree.txt | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt\nindex 49422454d1..260bfe9105 100644\n--- a/Documentation/git-worktree.txt\n+++ b/Documentation/git-worktree.txt\n@@ -48,8 +48,8 @@ add <path> [<commit-ish>]::\n \n Create `<path>` and checkout `<commit-ish>` into it. The new working directory\n is linked to the current repository, sharing everything except working\n-directory specific files such as HEAD, index, etc. `-` may also be\n-specified as `<commit-ish>`; it is synonymous with `@{-1}`.\n+directory specific files such as HEAD, index, etc. As a convenience,\n+`<commit-ish>` may be a bare \"`-`\", which is synonymous with `@{-1}`.\n +\n If `<commit-ish>` is a branch name (call it `<branch>`) and is not found,\n and neither `-b` nor `-B` nor `--detach` are used, but there does\n-- \n2.28.0.236.gb10cc79966\n\n"},{"id":"402692","messageId":"20200803161102.GB50799@syl.lan","threadId":"53971","inReplyTo":"20200803053612.50095-1-sunshine@sunshineco.com","subject":"Re: [PATCH 0/4] git-worktree documentation cleanups","fromName":"Taylor Blau","fromEmail":"me@ttaylorr.com","sentAt":"2020-08-03T16:11:02Z","receivedAt":"2020-08-03T16:11:07Z","isPatch":true,"sender":{"key":"me@ttaylorr.com","avatar":"https://avatars.githubusercontent.com/u/301000140?v=4"},"body":"Hi Eric,\n\nOn Mon, Aug 03, 2020 at 01:36:08AM -0400, Eric Sunshine wrote:\n> This series fixes some problems I ran across in the git-worktree\n> documentation while working on another worktree-related topic. Since\n> these fixes are distinct from that topic, I'm submitting them\n> separately.\n>\n> Eric Sunshine (4):\n>   git-worktree.txt: employ fixed-width typeface consistently\n>   git-worktree.txt: consistently use term \"working tree\"\n>   git-worktree.txt: fix minor grammatical issues\n>   git-worktree.txt: make start of new sentence more obvious\n>\n>  Documentation/git-worktree.txt | 96 +++++++++++++++++-----------------\n>  1 file changed, 48 insertions(+), 48 deletions(-)\n\nAll looks good to me. Thanks.\n\n  Reviewed-by: Taylor Blau <me@ttaylorr.com>\n\n> --\n> 2.28.0.236.gb10cc79966\n\nThanks,\nTaylor\n"},{"id":"402702","messageId":"xmqq3653wt17.fsf@gitster.c.googlers.com","threadId":"53971","inReplyTo":"20200803161102.GB50799@syl.lan","subject":"Re: [PATCH 0/4] git-worktree documentation cleanups","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2020-08-03T17:14:44Z","receivedAt":"2020-08-03T17:14:47Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Taylor Blau <me@ttaylorr.com> writes:\n\n> Hi Eric,\n>\n> On Mon, Aug 03, 2020 at 01:36:08AM -0400, Eric Sunshine wrote:\n>> This series fixes some problems I ran across in the git-worktree\n>> documentation while working on another worktree-related topic. Since\n>> these fixes are distinct from that topic, I'm submitting them\n>> separately.\n>>\n>> Eric Sunshine (4):\n>>   git-worktree.txt: employ fixed-width typeface consistently\n>>   git-worktree.txt: consistently use term \"working tree\"\n>>   git-worktree.txt: fix minor grammatical issues\n>>   git-worktree.txt: make start of new sentence more obvious\n>>\n>>  Documentation/git-worktree.txt | 96 +++++++++++++++++-----------------\n>>  1 file changed, 48 insertions(+), 48 deletions(-)\n>\n> All looks good to me. Thanks.\n>\n>   Reviewed-by: Taylor Blau <me@ttaylorr.com>\n\nYeah, they looked good to me, too.  Thanks, both.\n"},{"id":"402708","messageId":"20200803175717.7465-1-martin.agren@gmail.com","threadId":"53971","inReplyTo":"20200803053612.50095-1-sunshine@sunshineco.com","subject":"Re: [PATCH 0/4] git-worktree documentation cleanups","fromName":"Martin Ågren","fromEmail":"martin.agren@gmail.com","sentAt":"2020-08-03T17:57:17Z","receivedAt":"2020-08-03T17:57:39Z","isPatch":true,"sender":{"key":"martin.agren@gmail.com","avatar":null},"body":"On Mon, 3 Aug 2020 at 07:39, Eric Sunshine <sunshine@sunshineco.com> wrote:\n>\n> This series fixes some problems I ran across in the git-worktree\n> documentation while working on another worktree-related topic. Since\n> these fixes are distinct from that topic, I'm submitting them\n> separately.\n\nAll of these look correct to me. Thanks for polishing the docs. Extra\nthanks for injecting a \"$\" where we talk about the actual value of an\nenvironment variable.\n\nI offer the following suggestions on top. If you agree with them, or\nsome of them, you might want to squash them into the various patches.\nBut it's not like these are critical, I don't think they need to block\nthis.\n\nMartin\n\ndiff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt\nindex 260bfe9105..2000a08075 100644\n--- a/Documentation/git-worktree.txt\n+++ b/Documentation/git-worktree.txt\n@@ -25,8 +25,8 @@ Manage multiple working trees attached to the same repository.\n A git repository can support multiple working trees, allowing you to check\n out more than one branch at a time.  With `git worktree add` a new working\n tree is associated with the repository.  This new working tree is called a\n-\"linked working tree\" as opposed to the \"main working tree\" prepared by \"git\n-init\" or \"git clone\".  A repository has one main working tree (if it's not a\n+\"linked working tree\" as opposed to the \"main working tree\" prepared by linkgit:git-init[1]\n+or linkgit:git-clone[1].  A repository has one main working tree (if it's not a\n bare repository) and zero or more linked working trees. When you are done\n with a linked working tree, remove it with `git worktree remove`.\n \n@@ -48,7 +48,7 @@ add <path> [<commit-ish>]::\n \n Create `<path>` and checkout `<commit-ish>` into it. The new working directory\n is linked to the current repository, sharing everything except working\n-directory specific files such as HEAD, index, etc. As a convenience,\n+directory specific files such as `HEAD`, `index`, etc. As a convenience,\n `<commit-ish>` may be a bare \"`-`\", which is synonymous with `@{-1}`.\n +\n If `<commit-ish>` is a branch name (call it `<branch>`) and is not found,\n@@ -72,7 +72,7 @@ linkgit:git-config[1].\n If `<commit-ish>` is omitted and neither `-b` nor `-B` nor `--detach` used,\n then, as a convenience, the new working tree is associated with a branch\n (call it `<branch>`) named after `$(basename <path>)`.  If `<branch>`\n-doesn't exist, a new branch based on HEAD is automatically created as\n+doesn't exist, a new branch based on `HEAD` is automatically created as\n if `-b <branch>` was given.  If `<branch>` does exist, it will be\n checked out in the new working tree, if it's not checked out anywhere\n else, otherwise the command will refuse to create the working tree (unless\n@@ -137,13 +137,13 @@ To remove a locked working tree, specify `--force` twice.\n -B <new-branch>::\n \tWith `add`, create a new branch named `<new-branch>` starting at\n \t`<commit-ish>`, and check out `<new-branch>` into the new working tree.\n-\tIf `<commit-ish>` is omitted, it defaults to HEAD.\n+\tIf `<commit-ish>` is omitted, it defaults to `HEAD`.\n \tBy default, `-b` refuses to create a new branch if it already\n \texists. `-B` overrides this safeguard, resetting `<new-branch>` to\n \t`<commit-ish>`.\n \n --detach::\n-\tWith `add`, detach HEAD in the new working tree. See \"DETACHED HEAD\"\n+\tWith `add`, detach `HEAD` in the new working tree. See \"DETACHED HEAD\"\n \tin linkgit:git-checkout[1].\n \n --[no-]checkout::\n@@ -154,7 +154,7 @@ To remove a locked working tree, specify `--force` twice.\n \n --[no-]guess-remote::\n \tWith `worktree add <path>`, without `<commit-ish>`, instead\n-\tof creating a new branch from HEAD, if there exists a tracking\n+\tof creating a new branch from `HEAD`, if there exists a tracking\n \tbranch in exactly one remote matching the basename of `<path>`,\n \tbase the new branch on the remote-tracking branch, and mark\n \tthe remote-tracking branch as \"upstream\" from the new branch.\n@@ -166,7 +166,7 @@ This can also be set up as the default behaviour by using the\n \tWhen creating a new branch, if `<commit-ish>` is a branch,\n \tmark it as \"upstream\" from the new branch.  This is the\n \tdefault if `<commit-ish>` is a remote-tracking branch.  See\n-\t\"--track\" in linkgit:git-branch[1] for details.\n+\t`--track` in linkgit:git-branch[1] for details.\n \n --lock::\n \tKeep the working tree locked after creation. This is the\n@@ -185,14 +185,14 @@ This can also be set up as the default behaviour by using the\n \n -q::\n --quiet::\n-\tWith 'add', suppress feedback messages.\n+\tWith `add`, suppress feedback messages.\n \n -v::\n --verbose::\n \tWith `prune`, report all removals.\n \n --expire <time>::\n-\tWith `prune`, only expire unused working trees older than <time>.\n+\tWith `prune`, only expire unused working trees older than `<time>`.\n \n --reason <string>::\n \tWith `lock`, an explanation why the working tree is locked.\n@@ -209,12 +209,12 @@ then `ghi` or `def/ghi` is enough to point to the former working tree.\n REFS\n ----\n In multiple working trees, some refs may be shared between all working\n-trees and some refs are local. One example is HEAD which is different for each\n+trees and some refs are local. One example is `HEAD` which is different for each\n working tree. This section is about the sharing rules and how to access\n refs of one working tree from another.\n \n In general, all pseudo refs are per working tree and all refs starting\n-with `refs/` are shared. Pseudo refs are ones like HEAD which are\n+with `refs/` are shared. Pseudo refs are ones like `HEAD` which are\n directly under `$GIT_DIR` instead of inside `$GIT_DIR/refs`. There are\n exceptions, however: refs inside `refs/bisect` and `refs/worktree` are not\n shared.\n@@ -225,7 +225,7 @@ former gives access to per-working tree refs of the main working tree,\n while the latter to all linked working trees.\n \n For example, `main-worktree/HEAD` or `main-worktree/refs/bisect/good`\n-resolve to the same value as the main working tree's HEAD and\n+resolve to the same value as the main working tree's `HEAD` and\n `refs/bisect/good` respectively. Similarly, `worktrees/foo/HEAD` or\n `worktrees/bar/refs/bisect/bad` are the same as\n `$GIT_COMMON_DIR/worktrees/foo/HEAD` and\n@@ -243,7 +243,7 @@ already present in the config file, they will be applied to the main\n working trees only.\n \n In order to have configuration specific to working trees, you can turn\n-on \"worktreeConfig\" extension, e.g.:\n+on the \"worktreeConfig\" extension, e.g.:\n \n ------------\n $ git config extensions.worktreeConfig true\n-- \n2.28.0\n\n"},{"id":"402769","messageId":"CAPig+cQtcxqQDAQ5bO6ica+Z7dd2+r8B+kXm0RK7qhpsAiX_xg@mail.gmail.com","threadId":"53971","inReplyTo":"20200803175717.7465-1-martin.agren@gmail.com","subject":"Re: [PATCH 0/4] git-worktree documentation cleanups","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2020-08-03T23:54:24Z","receivedAt":"2020-08-03T23:54:38Z","isPatch":true,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"On Mon, Aug 3, 2020 at 1:57 PM Martin Ågren <martin.agren@gmail.com> wrote:\n> I offer the following suggestions on top. If you agree with them, or\n> some of them, you might want to squash them into the various patches.\n\nThanks for the review and suggestions for additional changes. See a\nfew minor comments below...\n\n> -\"linked working tree\" as opposed to the \"main working tree\" prepared by \"git\n> -init\" or \"git clone\".  A repository has one main working tree (if it's not a\n> +\"linked working tree\" as opposed to the \"main working tree\" prepared by linkgit:git-init[1]\n> +or linkgit:git-clone[1].  A repository has one main working tree (if it's not a\n\nGood idea, though this could just go atop this series.\n\n> -directory specific files such as HEAD, index, etc. As a convenience,\n> +directory specific files such as `HEAD`, `index`, etc. As a convenience,\n\nI intentionally left HEAD as-is because it consistently lacks quotes\nin this document, and I didn't feel strongly about it being quoted or\nnot. Such a change could easily go atop this series.\n\nI did see and consider adding backticks around \"index\" here but\nlikewise didn't feel strongly about it at the time. But upon\nreconsideration, as a literal filename, you're right that it ought to\nbe typeset specially.\n\n> @@ -166,7 +166,7 @@ This can also be set up as the default behaviour by using the\n> -       \"--track\" in linkgit:git-branch[1] for details.\n> +       `--track` in linkgit:git-branch[1] for details.\n\nI missed this one.\n\n> -       With 'add', suppress feedback messages.\n> +       With `add`, suppress feedback messages.\n\nAnd this.\n\n> -       With `prune`, only expire unused working trees older than <time>.\n> +       With `prune`, only expire unused working trees older than `<time>`.\n\nDitto.\n\n> -on \"worktreeConfig\" extension, e.g.:\n> +on the \"worktreeConfig\" extension, e.g.:\n\nIn addition to the grammo you spotted, the quotes around\nworktreeConfig should be backticks.\n\nI'll think go ahead and re-roll, adding a couple new patches,\nrespectively, for the linkgit:'s you pointed out and typesetting\n`HEAD` specially.\n"},{"id":"402772","messageId":"xmqqlfivtgem.fsf@gitster.c.googlers.com","threadId":"53971","inReplyTo":"CAPig+cQtcxqQDAQ5bO6ica+Z7dd2+r8B+kXm0RK7qhpsAiX_xg@mail.gmail.com","subject":"Re: [PATCH 0/4] git-worktree documentation cleanups","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2020-08-04T00:15:45Z","receivedAt":"2020-08-04T00:15:50Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Eric Sunshine <sunshine@sunshineco.com> writes:\n\n> In addition to the grammo you spotted, the quotes around\n> worktreeConfig should be backticks.\n>\n> I'll think go ahead and re-roll, adding a couple new patches,\n> respectively, for the linkgit:'s you pointed out and typesetting\n> `HEAD` specially.\n\nSounds all sensible.\n\nThanks, all.\n"},{"id":"402783","messageId":"20200804005535.5126-1-sunshine@sunshineco.com","threadId":"53971","inReplyTo":"20200803053612.50095-1-sunshine@sunshineco.com","subject":"[PATCH v2 0/5] git-worktree documentation cleanups","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2020-08-04T00:55:30Z","receivedAt":"2020-08-04T00:56:28Z","isPatch":true,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"This is a re-roll of [1] which fixes some problems I ran across in the\ngit-worktree documentation while working on another worktree-related\ntopic.\n\nThis version adds some `linkgit:` invocations, typesets `HEAD` as\nfixed-width, and covers a few additional places where backticks should\nhave been applied in place of other quotes, as suggested by Martin[2],\nas well as a few more I noticed beyond those found by him. Although I\nhad planned on adding backticks around `HEAD` in a separate patch, I\nended up folding that change into patch 1 since there are relatively few\nsuch instances, and since, upon reflection, such a change didn't seem to\nwarrant its own patch.\n\nI omitted Taylor's Reviewed-by:[4] since the patches have changed since\nhe reviewed them, but he's welcome to give it again.\n\n[1]: https://lore.kernel.org/git/20200803053612.50095-1-sunshine@sunshineco.com/\n[2]: https://lore.kernel.org/git/20200803175717.7465-1-martin.agren@gmail.com/\n[3]: https://lore.kernel.org/git/CAPig+cQtcxqQDAQ5bO6ica+Z7dd2+r8B+kXm0RK7qhpsAiX_xg@mail.gmail.com/\n[4]: https://lore.kernel.org/git/20200803161102.GB50799@syl.lan/\n\nEric Sunshine (5):\n  git-worktree.txt: employ fixed-width typeface consistently\n  git-worktree.txt: consistently use term \"working tree\"\n  git-worktree.txt: fix minor grammatical issues\n  git-worktree.txt: make start of new sentence more obvious\n  git-wortkree.txt: link to man pages when citing other Git commands\n\n Documentation/git-worktree.txt | 123 +++++++++++++++++----------------\n 1 file changed, 62 insertions(+), 61 deletions(-)\n\nInterdiff against v1:\ndiff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt\nindex 260bfe9105..6ee6ec7982 100644\n--- a/Documentation/git-worktree.txt\n+++ b/Documentation/git-worktree.txt\n@@ -25,8 +25,9 @@ Manage multiple working trees attached to the same repository.\n A git repository can support multiple working trees, allowing you to check\n out more than one branch at a time.  With `git worktree add` a new working\n tree is associated with the repository.  This new working tree is called a\n-\"linked working tree\" as opposed to the \"main working tree\" prepared by \"git\n-init\" or \"git clone\".  A repository has one main working tree (if it's not a\n+\"linked working tree\" as opposed to the \"main working tree\" prepared by\n+linkgit:git-init[1] or linkgit:git-clone[1].\n+A repository has one main working tree (if it's not a\n bare repository) and zero or more linked working trees. When you are done\n with a linked working tree, remove it with `git worktree remove`.\n \n@@ -48,7 +49,7 @@ add <path> [<commit-ish>]::\n \n Create `<path>` and checkout `<commit-ish>` into it. The new working directory\n is linked to the current repository, sharing everything except working\n-directory specific files such as HEAD, index, etc. As a convenience,\n+directory specific files such as `HEAD`, `index`, etc. As a convenience,\n `<commit-ish>` may be a bare \"`-`\", which is synonymous with `@{-1}`.\n +\n If `<commit-ish>` is a branch name (call it `<branch>`) and is not found,\n@@ -66,13 +67,13 @@ one for the purposes of disambiguation, even if the `<branch>` isn't\n unique across all remotes. Set it to\n e.g. `checkout.defaultRemote=origin` to always checkout remote\n branches from there if `<branch>` is ambiguous but exists on the\n-'origin' remote. See also `checkout.defaultRemote` in\n+`origin` remote. See also `checkout.defaultRemote` in\n linkgit:git-config[1].\n +\n If `<commit-ish>` is omitted and neither `-b` nor `-B` nor `--detach` used,\n then, as a convenience, the new working tree is associated with a branch\n (call it `<branch>`) named after `$(basename <path>)`.  If `<branch>`\n-doesn't exist, a new branch based on HEAD is automatically created as\n+doesn't exist, a new branch based on `HEAD` is automatically created as\n if `-b <branch>` was given.  If `<branch>` does exist, it will be\n checked out in the new working tree, if it's not checked out anywhere\n else, otherwise the command will refuse to create the working tree (unless\n@@ -137,13 +138,13 @@ To remove a locked working tree, specify `--force` twice.\n -B <new-branch>::\n \tWith `add`, create a new branch named `<new-branch>` starting at\n \t`<commit-ish>`, and check out `<new-branch>` into the new working tree.\n-\tIf `<commit-ish>` is omitted, it defaults to HEAD.\n+\tIf `<commit-ish>` is omitted, it defaults to `HEAD`.\n \tBy default, `-b` refuses to create a new branch if it already\n \texists. `-B` overrides this safeguard, resetting `<new-branch>` to\n \t`<commit-ish>`.\n \n --detach::\n-\tWith `add`, detach HEAD in the new working tree. See \"DETACHED HEAD\"\n+\tWith `add`, detach `HEAD` in the new working tree. See \"DETACHED HEAD\"\n \tin linkgit:git-checkout[1].\n \n --[no-]checkout::\n@@ -154,7 +155,7 @@ To remove a locked working tree, specify `--force` twice.\n \n --[no-]guess-remote::\n \tWith `worktree add <path>`, without `<commit-ish>`, instead\n-\tof creating a new branch from HEAD, if there exists a tracking\n+\tof creating a new branch from `HEAD`, if there exists a tracking\n \tbranch in exactly one remote matching the basename of `<path>`,\n \tbase the new branch on the remote-tracking branch, and mark\n \tthe remote-tracking branch as \"upstream\" from the new branch.\n@@ -166,7 +167,7 @@ This can also be set up as the default behaviour by using the\n \tWhen creating a new branch, if `<commit-ish>` is a branch,\n \tmark it as \"upstream\" from the new branch.  This is the\n \tdefault if `<commit-ish>` is a remote-tracking branch.  See\n-\t\"--track\" in linkgit:git-branch[1] for details.\n+\t`--track` in linkgit:git-branch[1] for details.\n \n --lock::\n \tKeep the working tree locked after creation. This is the\n@@ -185,14 +186,14 @@ This can also be set up as the default behaviour by using the\n \n -q::\n --quiet::\n-\tWith 'add', suppress feedback messages.\n+\tWith `add`, suppress feedback messages.\n \n -v::\n --verbose::\n \tWith `prune`, report all removals.\n \n --expire <time>::\n-\tWith `prune`, only expire unused working trees older than <time>.\n+\tWith `prune`, only expire unused working trees older than `<time>`.\n \n --reason <string>::\n \tWith `lock`, an explanation why the working tree is locked.\n@@ -209,12 +210,12 @@ then `ghi` or `def/ghi` is enough to point to the former working tree.\n REFS\n ----\n In multiple working trees, some refs may be shared between all working\n-trees and some refs are local. One example is HEAD which is different for each\n+trees and some refs are local. One example is `HEAD` which is different for each\n working tree. This section is about the sharing rules and how to access\n refs of one working tree from another.\n \n In general, all pseudo refs are per working tree and all refs starting\n-with `refs/` are shared. Pseudo refs are ones like HEAD which are\n+with `refs/` are shared. Pseudo refs are ones like `HEAD` which are\n directly under `$GIT_DIR` instead of inside `$GIT_DIR/refs`. There are\n exceptions, however: refs inside `refs/bisect` and `refs/worktree` are not\n shared.\n@@ -225,7 +226,7 @@ former gives access to per-working tree refs of the main working tree,\n while the latter to all linked working trees.\n \n For example, `main-worktree/HEAD` or `main-worktree/refs/bisect/good`\n-resolve to the same value as the main working tree's HEAD and\n+resolve to the same value as the main working tree's `HEAD` and\n `refs/bisect/good` respectively. Similarly, `worktrees/foo/HEAD` or\n `worktrees/bar/refs/bisect/bad` are the same as\n `$GIT_COMMON_DIR/worktrees/foo/HEAD` and\n@@ -237,13 +238,13 @@ which will handle refs correctly.\n \n CONFIGURATION FILE\n ------------------\n-By default, the repository \"config\" file is shared across all working\n+By default, the repository `config` file is shared across all working\n trees. If the config variables `core.bare` or `core.worktree` are\n already present in the config file, they will be applied to the main\n working trees only.\n \n In order to have configuration specific to working trees, you can turn\n-on \"worktreeConfig\" extension, e.g.:\n+on the `worktreeConfig` extension, e.g.:\n \n ------------\n $ git config extensions.worktreeConfig true\n-- \n2.28.0.236.gb10cc79966\n\n"},{"id":"402784","messageId":"20200804005535.5126-4-sunshine@sunshineco.com","threadId":"53971","inReplyTo":"20200804005535.5126-1-sunshine@sunshineco.com","subject":"[PATCH v2 3/5] git-worktree.txt: fix minor grammatical issues","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2020-08-04T00:55:33Z","receivedAt":"2020-08-04T00:56:31Z","isPatch":true,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"Fix a few grammatical problems to improve the reading experience.\n\nSigned-off-by: Eric Sunshine <sunshine@sunshineco.com>\n---\n Documentation/git-worktree.txt | 20 ++++++++++----------\n 1 file changed, 10 insertions(+), 10 deletions(-)\n\ndiff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt\nindex 926f4662ee..ce2d40ee4c 100644\n--- a/Documentation/git-worktree.txt\n+++ b/Documentation/git-worktree.txt\n@@ -82,7 +82,7 @@ list::\n \n List details of each working tree.  The main working tree is listed first,\n followed by each of the linked working trees.  The output details include\n-if the working tree is bare, the revision currently checked out, and the\n+whether the working tree is bare, the revision currently checked out, and the\n branch currently checked out (or \"detached HEAD\" if none).\n \n lock::\n@@ -171,7 +171,7 @@ This can also be set up as the default behaviour by using the\n --lock::\n \tKeep the working tree locked after creation. This is the\n \tequivalent of `git worktree lock` after `git worktree add`,\n-\tbut without race condition.\n+\tbut without a race condition.\n \n -n::\n --dry-run::\n@@ -202,21 +202,21 @@ This can also be set up as the default behaviour by using the\n \tabsolute.\n +\n If the last path components in the working tree's path is unique among\n-working trees, it can be used to identify working trees. For example if\n+working trees, it can be used to identify a working tree. For example if\n you only have two working trees, at `/abc/def/ghi` and `/abc/def/ggg`,\n then `ghi` or `def/ghi` is enough to point to the former working tree.\n \n REFS\n ----\n In multiple working trees, some refs may be shared between all working\n-trees, some refs are local. One example is `HEAD` is different for all\n-working trees. This section is about the sharing rules and how to access\n+trees and some refs are local. One example is `HEAD` which is different for each\n+working tree. This section is about the sharing rules and how to access\n refs of one working tree from another.\n \n In general, all pseudo refs are per working tree and all refs starting\n with `refs/` are shared. Pseudo refs are ones like `HEAD` which are\n-directly under `$GIT_DIR` instead of inside `$GIT_DIR/refs`. There is one\n-exception to this: refs inside `refs/bisect` and `refs/worktree` is not\n+directly under `$GIT_DIR` instead of inside `$GIT_DIR/refs`. There are\n+exceptions, however: refs inside `refs/bisect` and `refs/worktree` are not\n shared.\n \n Refs that are per working tree can still be accessed from another\n@@ -243,7 +243,7 @@ already present in the config file, they will be applied to the main\n working trees only.\n \n In order to have configuration specific to working trees, you can turn\n-on `worktreeConfig` extension, e.g.:\n+on the `worktreeConfig` extension, e.g.:\n \n ------------\n $ git config extensions.worktreeConfig true\n@@ -255,7 +255,7 @@ configuration in this file with `git config --worktree`. Older Git\n versions will refuse to access repositories with this extension.\n \n Note that in this file, the exception for `core.bare` and `core.worktree`\n-is gone. If you have them in `$GIT_DIR/config` before, you must move\n+is gone. If they exist in `$GIT_DIR/config`, you must move\n them to the `config.worktree` of the main working tree. You may also\n take this opportunity to review and move other configuration that you\n do not want to share to all working trees:\n@@ -334,7 +334,7 @@ Porcelain Format\n ~~~~~~~~~~~~~~~~\n The porcelain format has a line per attribute.  Attributes are listed with a\n label and value separated by a single space.  Boolean attributes (like `bare`\n-and `detached`) are listed as a label only, and are only present if and only\n+and `detached`) are listed as a label only, and are present only\n if the value is true.  The first attribute of a working tree is always\n `worktree`, an empty line indicates the end of the record.  For example:\n \n-- \n2.28.0.236.gb10cc79966\n\n"},{"id":"402786","messageId":"20200804005535.5126-2-sunshine@sunshineco.com","threadId":"53971","inReplyTo":"20200804005535.5126-1-sunshine@sunshineco.com","subject":"[PATCH v2 1/5] git-worktree.txt: employ fixed-width typeface consistently","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2020-08-04T00:55:31Z","receivedAt":"2020-08-04T00:56:32Z","isPatch":true,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"git-worktree documentation generally does a good job of formatting\nliteral text using a fixed-width typeface, however, some instances of\nunformatted literal text have crept in over time. Fix these.\n\nWhile at it, also fix a few incorrect typefaces resulting from wrong\nchoice of Asciidoc quotes.\n\nSigned-off-by: Eric Sunshine <sunshine@sunshineco.com>\n---\n Documentation/git-worktree.txt | 96 +++++++++++++++++-----------------\n 1 file changed, 48 insertions(+), 48 deletions(-)\n\ndiff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt\nindex 4796c3c05e..f7c1bd34f8 100644\n--- a/Documentation/git-worktree.txt\n+++ b/Documentation/git-worktree.txt\n@@ -25,8 +25,8 @@ Manage multiple working trees attached to the same repository.\n A git repository can support multiple working trees, allowing you to check\n out more than one branch at a time.  With `git worktree add` a new working\n tree is associated with the repository.  This new working tree is called a\n-\"linked working tree\" as opposed to the \"main working tree\" prepared by \"git\n-init\" or \"git clone\".  A repository has one main working tree (if it's not a\n+\"linked working tree\" as opposed to the \"main working tree\" prepared by `git\n+init` or `git clone`.  A repository has one main working tree (if it's not a\n bare repository) and zero or more linked working trees. When you are done\n with a linked working tree, remove it with `git worktree remove`.\n \n@@ -48,10 +48,10 @@ add <path> [<commit-ish>]::\n \n Create `<path>` and checkout `<commit-ish>` into it. The new working directory\n is linked to the current repository, sharing everything except working\n-directory specific files such as HEAD, index, etc. `-` may also be\n+directory specific files such as `HEAD`, `index`, etc. `-` may also be\n specified as `<commit-ish>`; it is synonymous with `@{-1}`.\n +\n-If <commit-ish> is a branch name (call it `<branch>`) and is not found,\n+If `<commit-ish>` is a branch name (call it `<branch>`) and is not found,\n and neither `-b` nor `-B` nor `--detach` are used, but there does\n exist a tracking branch in exactly one remote (call it `<remote>`)\n with a matching name, treat as equivalent to:\n@@ -66,13 +66,13 @@ one for the purposes of disambiguation, even if the `<branch>` isn't\n unique across all remotes. Set it to\n e.g. `checkout.defaultRemote=origin` to always checkout remote\n branches from there if `<branch>` is ambiguous but exists on the\n-'origin' remote. See also `checkout.defaultRemote` in\n+`origin` remote. See also `checkout.defaultRemote` in\n linkgit:git-config[1].\n +\n If `<commit-ish>` is omitted and neither `-b` nor `-B` nor `--detach` used,\n then, as a convenience, the new worktree is associated with a branch\n (call it `<branch>`) named after `$(basename <path>)`.  If `<branch>`\n-doesn't exist, a new branch based on HEAD is automatically created as\n+doesn't exist, a new branch based on `HEAD` is automatically created as\n if `-b <branch>` was given.  If `<branch>` does exist, it will be\n checked out in the new worktree, if it's not checked out anywhere\n else, otherwise the command will refuse to create the worktree (unless\n@@ -83,7 +83,7 @@ list::\n List details of each worktree.  The main worktree is listed first, followed by\n each of the linked worktrees.  The output details include if the worktree is\n bare, the revision currently checked out, and the branch currently checked out\n-(or 'detached HEAD' if none).\n+(or \"detached HEAD\" if none).\n \n lock::\n \n@@ -100,7 +100,7 @@ or linked working trees containing submodules cannot be moved.\n \n prune::\n \n-Prune working tree information in $GIT_DIR/worktrees.\n+Prune working tree information in `$GIT_DIR/worktrees`.\n \n remove::\n \n@@ -128,7 +128,7 @@ OPTIONS\n `move` refuses to move a locked working tree unless `--force` is specified\n twice. If the destination is already assigned to some other working tree but is\n missing (for instance, if `<new-path>` was deleted manually), then `--force`\n-allows the move to proceed; use --force twice if the destination is locked.\n+allows the move to proceed; use `--force` twice if the destination is locked.\n +\n `remove` refuses to remove an unclean working tree unless `--force` is used.\n To remove a locked working tree, specify `--force` twice.\n@@ -137,13 +137,13 @@ To remove a locked working tree, specify `--force` twice.\n -B <new-branch>::\n \tWith `add`, create a new branch named `<new-branch>` starting at\n \t`<commit-ish>`, and check out `<new-branch>` into the new working tree.\n-\tIf `<commit-ish>` is omitted, it defaults to HEAD.\n+\tIf `<commit-ish>` is omitted, it defaults to `HEAD`.\n \tBy default, `-b` refuses to create a new branch if it already\n \texists. `-B` overrides this safeguard, resetting `<new-branch>` to\n \t`<commit-ish>`.\n \n --detach::\n-\tWith `add`, detach HEAD in the new working tree. See \"DETACHED HEAD\"\n+\tWith `add`, detach `HEAD` in the new working tree. See \"DETACHED HEAD\"\n \tin linkgit:git-checkout[1].\n \n --[no-]checkout::\n@@ -154,7 +154,7 @@ To remove a locked working tree, specify `--force` twice.\n \n --[no-]guess-remote::\n \tWith `worktree add <path>`, without `<commit-ish>`, instead\n-\tof creating a new branch from HEAD, if there exists a tracking\n+\tof creating a new branch from `HEAD`, if there exists a tracking\n \tbranch in exactly one remote matching the basename of `<path>`,\n \tbase the new branch on the remote-tracking branch, and mark\n \tthe remote-tracking branch as \"upstream\" from the new branch.\n@@ -166,7 +166,7 @@ This can also be set up as the default behaviour by using the\n \tWhen creating a new branch, if `<commit-ish>` is a branch,\n \tmark it as \"upstream\" from the new branch.  This is the\n \tdefault if `<commit-ish>` is a remote-tracking branch.  See\n-\t\"--track\" in linkgit:git-branch[1] for details.\n+\t`--track` in linkgit:git-branch[1] for details.\n \n --lock::\n \tKeep the working tree locked after creation. This is the\n@@ -185,14 +185,14 @@ This can also be set up as the default behaviour by using the\n \n -q::\n --quiet::\n-\tWith 'add', suppress feedback messages.\n+\tWith `add`, suppress feedback messages.\n \n -v::\n --verbose::\n \tWith `prune`, report all removals.\n \n --expire <time>::\n-\tWith `prune`, only expire unused working trees older than <time>.\n+\tWith `prune`, only expire unused working trees older than `<time>`.\n \n --reason <string>::\n \tWith `lock`, an explanation why the working tree is locked.\n@@ -203,47 +203,47 @@ This can also be set up as the default behaviour by using the\n +\n If the last path components in the working tree's path is unique among\n working trees, it can be used to identify worktrees. For example if\n-you only have two working trees, at \"/abc/def/ghi\" and \"/abc/def/ggg\",\n-then \"ghi\" or \"def/ghi\" is enough to point to the former working tree.\n+you only have two working trees, at `/abc/def/ghi` and `/abc/def/ggg`,\n+then `ghi` or `def/ghi` is enough to point to the former working tree.\n \n REFS\n ----\n In multiple working trees, some refs may be shared between all working\n-trees, some refs are local. One example is HEAD is different for all\n+trees, some refs are local. One example is `HEAD` is different for all\n working trees. This section is about the sharing rules and how to access\n refs of one working tree from another.\n \n In general, all pseudo refs are per working tree and all refs starting\n-with \"refs/\" are shared. Pseudo refs are ones like HEAD which are\n-directly under GIT_DIR instead of inside GIT_DIR/refs. There is one\n-exception to this: refs inside refs/bisect and refs/worktree is not\n+with `refs/` are shared. Pseudo refs are ones like `HEAD` which are\n+directly under `$GIT_DIR` instead of inside `$GIT_DIR/refs`. There is one\n+exception to this: refs inside `refs/bisect` and `refs/worktree` is not\n shared.\n \n Refs that are per working tree can still be accessed from another\n-working tree via two special paths, main-worktree and worktrees. The\n+working tree via two special paths, `main-worktree` and `worktrees`. The\n former gives access to per-worktree refs of the main working tree,\n while the latter to all linked working trees.\n \n-For example, main-worktree/HEAD or main-worktree/refs/bisect/good\n-resolve to the same value as the main working tree's HEAD and\n-refs/bisect/good respectively. Similarly, worktrees/foo/HEAD or\n-worktrees/bar/refs/bisect/bad are the same as\n-GIT_COMMON_DIR/worktrees/foo/HEAD and\n-GIT_COMMON_DIR/worktrees/bar/refs/bisect/bad.\n+For example, `main-worktree/HEAD` or `main-worktree/refs/bisect/good`\n+resolve to the same value as the main working tree's `HEAD` and\n+`refs/bisect/good` respectively. Similarly, `worktrees/foo/HEAD` or\n+`worktrees/bar/refs/bisect/bad` are the same as\n+`$GIT_COMMON_DIR/worktrees/foo/HEAD` and\n+`$GIT_COMMON_DIR/worktrees/bar/refs/bisect/bad`.\n \n-To access refs, it's best not to look inside GIT_DIR directly. Instead\n+To access refs, it's best not to look inside `$GIT_DIR` directly. Instead\n use commands such as linkgit:git-rev-parse[1] or linkgit:git-update-ref[1]\n which will handle refs correctly.\n \n CONFIGURATION FILE\n ------------------\n-By default, the repository \"config\" file is shared across all working\n+By default, the repository `config` file is shared across all working\n trees. If the config variables `core.bare` or `core.worktree` are\n already present in the config file, they will be applied to the main\n working trees only.\n \n In order to have configuration specific to working trees, you can turn\n-on \"worktreeConfig\" extension, e.g.:\n+on `worktreeConfig` extension, e.g.:\n \n ------------\n $ git config extensions.worktreeConfig true\n@@ -255,7 +255,7 @@ configuration in this file with `git config --worktree`. Older Git\n versions will refuse to access repositories with this extension.\n \n Note that in this file, the exception for `core.bare` and `core.worktree`\n-is gone. If you have them in $GIT_DIR/config before, you must move\n+is gone. If you have them in `$GIT_DIR/config` before, you must move\n them to the `config.worktree` of the main working tree. You may also\n take this opportunity to review and move other configuration that you\n do not want to share to all working trees:\n@@ -268,7 +268,7 @@ do not want to share to all working trees:\n DETAILS\n -------\n Each linked working tree has a private sub-directory in the repository's\n-$GIT_DIR/worktrees directory.  The private sub-directory's name is usually\n+`$GIT_DIR/worktrees` directory.  The private sub-directory's name is usually\n the base name of the linked working tree's path, possibly appended with a\n number to make it unique.  For example, when `$GIT_DIR=/path/main/.git` the\n command `git worktree add /path/other/test-next next` creates the linked\n@@ -276,51 +276,51 @@ working tree in `/path/other/test-next` and also creates a\n `$GIT_DIR/worktrees/test-next` directory (or `$GIT_DIR/worktrees/test-next1`\n if `test-next` is already taken).\n \n-Within a linked working tree, $GIT_DIR is set to point to this private\n+Within a linked working tree, `$GIT_DIR` is set to point to this private\n directory (e.g. `/path/main/.git/worktrees/test-next` in the example) and\n-$GIT_COMMON_DIR is set to point back to the main working tree's $GIT_DIR\n+`$GIT_COMMON_DIR` is set to point back to the main working tree's `$GIT_DIR`\n (e.g. `/path/main/.git`). These settings are made in a `.git` file located at\n the top directory of the linked working tree.\n \n Path resolution via `git rev-parse --git-path` uses either\n-$GIT_DIR or $GIT_COMMON_DIR depending on the path. For example, in the\n+`$GIT_DIR` or `$GIT_COMMON_DIR` depending on the path. For example, in the\n linked working tree `git rev-parse --git-path HEAD` returns\n `/path/main/.git/worktrees/test-next/HEAD` (not\n `/path/other/test-next/.git/HEAD` or `/path/main/.git/HEAD`) while `git\n rev-parse --git-path refs/heads/master` uses\n-$GIT_COMMON_DIR and returns `/path/main/.git/refs/heads/master`,\n-since refs are shared across all working trees, except refs/bisect and\n-refs/worktree.\n+`$GIT_COMMON_DIR` and returns `/path/main/.git/refs/heads/master`,\n+since refs are shared across all working trees, except `refs/bisect` and\n+`refs/worktree`.\n \n See linkgit:gitrepository-layout[5] for more information. The rule of\n thumb is do not make any assumption about whether a path belongs to\n-$GIT_DIR or $GIT_COMMON_DIR when you need to directly access something\n-inside $GIT_DIR. Use `git rev-parse --git-path` to get the final path.\n+`$GIT_DIR` or `$GIT_COMMON_DIR` when you need to directly access something\n+inside `$GIT_DIR`. Use `git rev-parse --git-path` to get the final path.\n \n-If you manually move a linked working tree, you need to update the 'gitdir' file\n+If you manually move a linked working tree, you need to update the `gitdir` file\n in the entry's directory. For example, if a linked working tree is moved\n to `/newpath/test-next` and its `.git` file points to\n `/path/main/.git/worktrees/test-next`, then update\n `/path/main/.git/worktrees/test-next/gitdir` to reference `/newpath/test-next`\n instead.\n \n-To prevent a $GIT_DIR/worktrees entry from being pruned (which\n+To prevent a `$GIT_DIR/worktrees` entry from being pruned (which\n can be useful in some situations, such as when the\n entry's working tree is stored on a portable device), use the\n `git worktree lock` command, which adds a file named\n-'locked' to the entry's directory. The file contains the reason in\n+`locked` to the entry's directory. The file contains the reason in\n plain text. For example, if a linked working tree's `.git` file points\n to `/path/main/.git/worktrees/test-next` then a file named\n `/path/main/.git/worktrees/test-next/locked` will prevent the\n `test-next` entry from being pruned.  See\n linkgit:gitrepository-layout[5] for details.\n \n-When extensions.worktreeConfig is enabled, the config file\n+When `extensions.worktreeConfig` is enabled, the config file\n `.git/worktrees/<id>/config.worktree` is read after `.git/config` is.\n \n LIST OUTPUT FORMAT\n ------------------\n-The worktree list command has two output formats.  The default format shows the\n+The `worktree list` command has two output formats. The default format shows the\n details on a single line with columns.  For example:\n \n ------------\n@@ -333,8 +333,8 @@ $ git worktree list\n Porcelain Format\n ~~~~~~~~~~~~~~~~\n The porcelain format has a line per attribute.  Attributes are listed with a\n-label and value separated by a single space.  Boolean attributes (like 'bare'\n-and 'detached') are listed as a label only, and are only present if and only\n+label and value separated by a single space.  Boolean attributes (like `bare`\n+and `detached`) are listed as a label only, and are only present if and only\n if the value is true.  The first attribute of a worktree is always `worktree`,\n an empty line indicates the end of the record.  For example:\n \n-- \n2.28.0.236.gb10cc79966\n\n"},{"id":"402785","messageId":"20200804005535.5126-5-sunshine@sunshineco.com","threadId":"53971","inReplyTo":"20200804005535.5126-1-sunshine@sunshineco.com","subject":"[PATCH v2 4/5] git-worktree.txt: make start of new sentence more obvious","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2020-08-04T00:55:34Z","receivedAt":"2020-08-04T00:56:33Z","isPatch":true,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"When reading the rendered description of `add`, it's easy to trip over\nand miss the end of one sentence and the start of the next, making it\nseem as if they are part of the same statement, separated only by a\ndash:\n\n    ... specific files such as HEAD, index, etc. - may also be\n    specified as <commit-ish>; it is synonymous with...\n\nThis can be particularly confusing since the thoughts expressed by the\ntwo sentences are unrelated. Reduce the likelihood of confusion by\nmaking it obvious that the two sentences are distinct.\n\nSigned-off-by: Eric Sunshine <sunshine@sunshineco.com>\n---\n Documentation/git-worktree.txt | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt\nindex ce2d40ee4c..544464f949 100644\n--- a/Documentation/git-worktree.txt\n+++ b/Documentation/git-worktree.txt\n@@ -48,8 +48,8 @@ add <path> [<commit-ish>]::\n \n Create `<path>` and checkout `<commit-ish>` into it. The new working directory\n is linked to the current repository, sharing everything except working\n-directory specific files such as `HEAD`, `index`, etc. `-` may also be\n-specified as `<commit-ish>`; it is synonymous with `@{-1}`.\n+directory specific files such as `HEAD`, `index`, etc. As a convenience,\n+`<commit-ish>` may be a bare \"`-`\", which is synonymous with `@{-1}`.\n +\n If `<commit-ish>` is a branch name (call it `<branch>`) and is not found,\n and neither `-b` nor `-B` nor `--detach` are used, but there does\n-- \n2.28.0.236.gb10cc79966\n\n"},{"id":"402787","messageId":"20200804005535.5126-6-sunshine@sunshineco.com","threadId":"53971","inReplyTo":"20200804005535.5126-1-sunshine@sunshineco.com","subject":"[PATCH v2 5/5] git-wortkree.txt: link to man pages when citing other Git commands","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2020-08-04T00:55:35Z","receivedAt":"2020-08-04T00:56:34Z","isPatch":true,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"When citing other Git commands, rather than merely formatting them with\na fixed-width typeface, improve the reader experience by linking to them\ndirectly via `linkgit:`.\n\nSuggested-by: Martin Ågren <martin.agren@gmail.com>\nSigned-off-by: Eric Sunshine <sunshine@sunshineco.com>\n---\n Documentation/git-worktree.txt | 5 +++--\n 1 file changed, 3 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt\nindex 544464f949..6ee6ec7982 100644\n--- a/Documentation/git-worktree.txt\n+++ b/Documentation/git-worktree.txt\n@@ -25,8 +25,9 @@ Manage multiple working trees attached to the same repository.\n A git repository can support multiple working trees, allowing you to check\n out more than one branch at a time.  With `git worktree add` a new working\n tree is associated with the repository.  This new working tree is called a\n-\"linked working tree\" as opposed to the \"main working tree\" prepared by `git\n-init` or `git clone`.  A repository has one main working tree (if it's not a\n+\"linked working tree\" as opposed to the \"main working tree\" prepared by\n+linkgit:git-init[1] or linkgit:git-clone[1].\n+A repository has one main working tree (if it's not a\n bare repository) and zero or more linked working trees. When you are done\n with a linked working tree, remove it with `git worktree remove`.\n \n-- \n2.28.0.236.gb10cc79966\n\n"},{"id":"402788","messageId":"20200804005535.5126-3-sunshine@sunshineco.com","threadId":"53971","inReplyTo":"20200804005535.5126-1-sunshine@sunshineco.com","subject":"[PATCH v2 2/5] git-worktree.txt: consistently use term \"working tree\"","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2020-08-04T00:55:32Z","receivedAt":"2020-08-04T00:56:35Z","isPatch":true,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"As originally composed, git-worktree.txt employed a mix of \"worktree\"\nand \"working tree\" which was inconsistent and potentially confusing to\nreaders. bc483285b7 (Documentation/git-worktree: consistently use term\n\"linked working tree\", 2015-07-20) undertook the task of employing the\nterm \"working tree\" consistently throughout the document and avoiding\n\"worktree\" altogether for descriptive text. Since that time, some\ninstances of \"worktree\" have crept back in. Continue the work of\nbc483285b7 by transforming these to \"working tree\", as well.\n\nSigned-off-by: Eric Sunshine <sunshine@sunshineco.com>\n---\n Documentation/git-worktree.txt | 22 +++++++++++-----------\n 1 file changed, 11 insertions(+), 11 deletions(-)\n\ndiff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt\nindex f7c1bd34f8..926f4662ee 100644\n--- a/Documentation/git-worktree.txt\n+++ b/Documentation/git-worktree.txt\n@@ -70,20 +70,20 @@ branches from there if `<branch>` is ambiguous but exists on the\n linkgit:git-config[1].\n +\n If `<commit-ish>` is omitted and neither `-b` nor `-B` nor `--detach` used,\n-then, as a convenience, the new worktree is associated with a branch\n+then, as a convenience, the new working tree is associated with a branch\n (call it `<branch>`) named after `$(basename <path>)`.  If `<branch>`\n doesn't exist, a new branch based on `HEAD` is automatically created as\n if `-b <branch>` was given.  If `<branch>` does exist, it will be\n-checked out in the new worktree, if it's not checked out anywhere\n-else, otherwise the command will refuse to create the worktree (unless\n+checked out in the new working tree, if it's not checked out anywhere\n+else, otherwise the command will refuse to create the working tree (unless\n `--force` is used).\n \n list::\n \n-List details of each worktree.  The main worktree is listed first, followed by\n-each of the linked worktrees.  The output details include if the worktree is\n-bare, the revision currently checked out, and the branch currently checked out\n-(or \"detached HEAD\" if none).\n+List details of each working tree.  The main working tree is listed first,\n+followed by each of the linked working trees.  The output details include\n+if the working tree is bare, the revision currently checked out, and the\n+branch currently checked out (or \"detached HEAD\" if none).\n \n lock::\n \n@@ -202,7 +202,7 @@ This can also be set up as the default behaviour by using the\n \tabsolute.\n +\n If the last path components in the working tree's path is unique among\n-working trees, it can be used to identify worktrees. For example if\n+working trees, it can be used to identify working trees. For example if\n you only have two working trees, at `/abc/def/ghi` and `/abc/def/ggg`,\n then `ghi` or `def/ghi` is enough to point to the former working tree.\n \n@@ -221,7 +221,7 @@ shared.\n \n Refs that are per working tree can still be accessed from another\n working tree via two special paths, `main-worktree` and `worktrees`. The\n-former gives access to per-worktree refs of the main working tree,\n+former gives access to per-working tree refs of the main working tree,\n while the latter to all linked working trees.\n \n For example, `main-worktree/HEAD` or `main-worktree/refs/bisect/good`\n@@ -335,8 +335,8 @@ Porcelain Format\n The porcelain format has a line per attribute.  Attributes are listed with a\n label and value separated by a single space.  Boolean attributes (like `bare`\n and `detached`) are listed as a label only, and are only present if and only\n-if the value is true.  The first attribute of a worktree is always `worktree`,\n-an empty line indicates the end of the record.  For example:\n+if the value is true.  The first attribute of a working tree is always\n+`worktree`, an empty line indicates the end of the record.  For example:\n \n ------------\n $ git worktree list --porcelain\n-- \n2.28.0.236.gb10cc79966\n\n"},{"id":"402790","messageId":"20200804011045.GB77538@syl.lan","threadId":"53971","inReplyTo":"20200804005535.5126-1-sunshine@sunshineco.com","subject":"Re: [PATCH v2 0/5] git-worktree documentation cleanups","fromName":"Taylor Blau","fromEmail":"me@ttaylorr.com","sentAt":"2020-08-04T01:10:45Z","receivedAt":"2020-08-04T01:10:50Z","isPatch":true,"sender":{"key":"me@ttaylorr.com","avatar":"https://avatars.githubusercontent.com/u/301000140?v=4"},"body":"On Mon, Aug 03, 2020 at 08:55:30PM -0400, Eric Sunshine wrote:\n> This is a re-roll of [1] which fixes some problems I ran across in the\n> git-worktree documentation while working on another worktree-related\n> topic.\n>\n> This version adds some `linkgit:` invocations, typesets `HEAD` as\n> fixed-width, and covers a few additional places where backticks should\n> have been applied in place of other quotes, as suggested by Martin[2],\n> as well as a few more I noticed beyond those found by him. Although I\n> had planned on adding backticks around `HEAD` in a separate patch, I\n> ended up folding that change into patch 1 since there are relatively few\n> such instances, and since, upon reflection, such a change didn't seem to\n> warrant its own patch.\n>\n> I omitted Taylor's Reviewed-by:[4] since the patches have changed since\n> he reviewed them, but he's welcome to give it again.\n\nThanks for dropping that. I looked at the inter-diff and skimmed the\nre-rolled patches, and they all look good to me. You can add my\n\n  Reviewed-by: Taylor Blau <me@ttaylorr.com>\n\nback to these patches (really Junio can when he queues them).\n\nThanks.\n\n>\n> [1]: https://lore.kernel.org/git/20200803053612.50095-1-sunshine@sunshineco.com/\n> [2]: https://lore.kernel.org/git/20200803175717.7465-1-martin.agren@gmail.com/\n> [3]: https://lore.kernel.org/git/CAPig+cQtcxqQDAQ5bO6ica+Z7dd2+r8B+kXm0RK7qhpsAiX_xg@mail.gmail.com/\n> [4]: https://lore.kernel.org/git/20200803161102.GB50799@syl.lan/\n>\n> Eric Sunshine (5):\n>   git-worktree.txt: employ fixed-width typeface consistently\n>   git-worktree.txt: consistently use term \"working tree\"\n>   git-worktree.txt: fix minor grammatical issues\n>   git-worktree.txt: make start of new sentence more obvious\n>   git-wortkree.txt: link to man pages when citing other Git commands\n>\n>  Documentation/git-worktree.txt | 123 +++++++++++++++++----------------\n>  1 file changed, 62 insertions(+), 61 deletions(-)\n>\n> Interdiff against v1:\n> diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt\n> index 260bfe9105..6ee6ec7982 100644\n> --- a/Documentation/git-worktree.txt\n> +++ b/Documentation/git-worktree.txt\n> @@ -25,8 +25,9 @@ Manage multiple working trees attached to the same repository.\n>  A git repository can support multiple working trees, allowing you to check\n>  out more than one branch at a time.  With `git worktree add` a new working\n>  tree is associated with the repository.  This new working tree is called a\n> -\"linked working tree\" as opposed to the \"main working tree\" prepared by \"git\n> -init\" or \"git clone\".  A repository has one main working tree (if it's not a\n> +\"linked working tree\" as opposed to the \"main working tree\" prepared by\n> +linkgit:git-init[1] or linkgit:git-clone[1].\n> +A repository has one main working tree (if it's not a\n>  bare repository) and zero or more linked working trees. When you are done\n>  with a linked working tree, remove it with `git worktree remove`.\n>\n> @@ -48,7 +49,7 @@ add <path> [<commit-ish>]::\n>\n>  Create `<path>` and checkout `<commit-ish>` into it. The new working directory\n>  is linked to the current repository, sharing everything except working\n> -directory specific files such as HEAD, index, etc. As a convenience,\n> +directory specific files such as `HEAD`, `index`, etc. As a convenience,\n>  `<commit-ish>` may be a bare \"`-`\", which is synonymous with `@{-1}`.\n>  +\n>  If `<commit-ish>` is a branch name (call it `<branch>`) and is not found,\n> @@ -66,13 +67,13 @@ one for the purposes of disambiguation, even if the `<branch>` isn't\n>  unique across all remotes. Set it to\n>  e.g. `checkout.defaultRemote=origin` to always checkout remote\n>  branches from there if `<branch>` is ambiguous but exists on the\n> -'origin' remote. See also `checkout.defaultRemote` in\n> +`origin` remote. See also `checkout.defaultRemote` in\n>  linkgit:git-config[1].\n>  +\n>  If `<commit-ish>` is omitted and neither `-b` nor `-B` nor `--detach` used,\n>  then, as a convenience, the new working tree is associated with a branch\n>  (call it `<branch>`) named after `$(basename <path>)`.  If `<branch>`\n> -doesn't exist, a new branch based on HEAD is automatically created as\n> +doesn't exist, a new branch based on `HEAD` is automatically created as\n>  if `-b <branch>` was given.  If `<branch>` does exist, it will be\n>  checked out in the new working tree, if it's not checked out anywhere\n>  else, otherwise the command will refuse to create the working tree (unless\n> @@ -137,13 +138,13 @@ To remove a locked working tree, specify `--force` twice.\n>  -B <new-branch>::\n>  \tWith `add`, create a new branch named `<new-branch>` starting at\n>  \t`<commit-ish>`, and check out `<new-branch>` into the new working tree.\n> -\tIf `<commit-ish>` is omitted, it defaults to HEAD.\n> +\tIf `<commit-ish>` is omitted, it defaults to `HEAD`.\n>  \tBy default, `-b` refuses to create a new branch if it already\n>  \texists. `-B` overrides this safeguard, resetting `<new-branch>` to\n>  \t`<commit-ish>`.\n>\n>  --detach::\n> -\tWith `add`, detach HEAD in the new working tree. See \"DETACHED HEAD\"\n> +\tWith `add`, detach `HEAD` in the new working tree. See \"DETACHED HEAD\"\n>  \tin linkgit:git-checkout[1].\n>\n>  --[no-]checkout::\n> @@ -154,7 +155,7 @@ To remove a locked working tree, specify `--force` twice.\n>\n>  --[no-]guess-remote::\n>  \tWith `worktree add <path>`, without `<commit-ish>`, instead\n> -\tof creating a new branch from HEAD, if there exists a tracking\n> +\tof creating a new branch from `HEAD`, if there exists a tracking\n>  \tbranch in exactly one remote matching the basename of `<path>`,\n>  \tbase the new branch on the remote-tracking branch, and mark\n>  \tthe remote-tracking branch as \"upstream\" from the new branch.\n> @@ -166,7 +167,7 @@ This can also be set up as the default behaviour by using the\n>  \tWhen creating a new branch, if `<commit-ish>` is a branch,\n>  \tmark it as \"upstream\" from the new branch.  This is the\n>  \tdefault if `<commit-ish>` is a remote-tracking branch.  See\n> -\t\"--track\" in linkgit:git-branch[1] for details.\n> +\t`--track` in linkgit:git-branch[1] for details.\n>\n>  --lock::\n>  \tKeep the working tree locked after creation. This is the\n> @@ -185,14 +186,14 @@ This can also be set up as the default behaviour by using the\n>\n>  -q::\n>  --quiet::\n> -\tWith 'add', suppress feedback messages.\n> +\tWith `add`, suppress feedback messages.\n>\n>  -v::\n>  --verbose::\n>  \tWith `prune`, report all removals.\n>\n>  --expire <time>::\n> -\tWith `prune`, only expire unused working trees older than <time>.\n> +\tWith `prune`, only expire unused working trees older than `<time>`.\n>\n>  --reason <string>::\n>  \tWith `lock`, an explanation why the working tree is locked.\n> @@ -209,12 +210,12 @@ then `ghi` or `def/ghi` is enough to point to the former working tree.\n>  REFS\n>  ----\n>  In multiple working trees, some refs may be shared between all working\n> -trees and some refs are local. One example is HEAD which is different for each\n> +trees and some refs are local. One example is `HEAD` which is different for each\n>  working tree. This section is about the sharing rules and how to access\n>  refs of one working tree from another.\n>\n>  In general, all pseudo refs are per working tree and all refs starting\n> -with `refs/` are shared. Pseudo refs are ones like HEAD which are\n> +with `refs/` are shared. Pseudo refs are ones like `HEAD` which are\n>  directly under `$GIT_DIR` instead of inside `$GIT_DIR/refs`. There are\n>  exceptions, however: refs inside `refs/bisect` and `refs/worktree` are not\n>  shared.\n> @@ -225,7 +226,7 @@ former gives access to per-working tree refs of the main working tree,\n>  while the latter to all linked working trees.\n>\n>  For example, `main-worktree/HEAD` or `main-worktree/refs/bisect/good`\n> -resolve to the same value as the main working tree's HEAD and\n> +resolve to the same value as the main working tree's `HEAD` and\n>  `refs/bisect/good` respectively. Similarly, `worktrees/foo/HEAD` or\n>  `worktrees/bar/refs/bisect/bad` are the same as\n>  `$GIT_COMMON_DIR/worktrees/foo/HEAD` and\n> @@ -237,13 +238,13 @@ which will handle refs correctly.\n>\n>  CONFIGURATION FILE\n>  ------------------\n> -By default, the repository \"config\" file is shared across all working\n> +By default, the repository `config` file is shared across all working\n>  trees. If the config variables `core.bare` or `core.worktree` are\n>  already present in the config file, they will be applied to the main\n>  working trees only.\n>\n>  In order to have configuration specific to working trees, you can turn\n> -on \"worktreeConfig\" extension, e.g.:\n> +on the `worktreeConfig` extension, e.g.:\n>\n>  ------------\n>  $ git config extensions.worktreeConfig true\n> --\n> 2.28.0.236.gb10cc79966\n>\n\nThanks,\nTaylor\n"},{"id":"402791","messageId":"CAN0heSpO4ocUTv2BSAOkRsuEX59V7phKn1=Y-PU2qq0POhp1Rg@mail.gmail.com","threadId":"53971","inReplyTo":"20200804005535.5126-1-sunshine@sunshineco.com","subject":"Re: [PATCH v2 0/5] git-worktree documentation cleanups","fromName":"Martin Ågren","fromEmail":"martin.agren@gmail.com","sentAt":"2020-08-04T04:28:49Z","receivedAt":"2020-08-04T04:29:05Z","isPatch":true,"sender":{"key":"martin.agren@gmail.com","avatar":null},"body":"On Tue, 4 Aug 2020 at 02:56, Eric Sunshine <sunshine@sunshineco.com> wrote:\n>\n> This is a re-roll of [1] which fixes some problems I ran across in the\n> git-worktree documentation while working on another worktree-related\n> topic.\n\nThanks for this update.\n\n> Eric Sunshine (5):\n>   git-worktree.txt: employ fixed-width typeface consistently\n>   git-worktree.txt: consistently use term \"working tree\"\n>   git-worktree.txt: fix minor grammatical issues\n>   git-worktree.txt: make start of new sentence more obvious\n>   git-wortkree.txt: link to man pages when citing other Git commands\n\ns/wortkree/worktree/ in the subject of the final, new patch.\n\nI agree with all changes since v1, except ...\n\n>  CONFIGURATION FILE\n>  ------------------\n> -By default, the repository \"config\" file is shared across all working\n> +By default, the repository `config` file is shared across all working\n>  trees. If the config variables `core.bare` or `core.worktree` are\n\nI don't think this is a filename (in which case it would have been\n`.gitconfig?) but rather some sort of colloquial short form for\n'configuration file', thus '\"config\" file'. So I could see the double\nquotes remain or being dropped, but I was surprised to see them\nconverted like this. But maybe you have a good reason, in which case I'm\nsure it's good.\n\nMartin\n"},{"id":"402794","messageId":"CAPig+cS2jsmYkpf5+Kob2w09UKQgBvM5wjOV-bS-fVOK5KGhyA@mail.gmail.com","threadId":"53971","inReplyTo":"CAN0heSpO4ocUTv2BSAOkRsuEX59V7phKn1=Y-PU2qq0POhp1Rg@mail.gmail.com","subject":"Re: [PATCH v2 0/5] git-worktree documentation cleanups","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2020-08-04T04:44:23Z","receivedAt":"2020-08-04T04:44:37Z","isPatch":true,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"On Tue, Aug 4, 2020 at 12:29 AM Martin Ågren <martin.agren@gmail.com> wrote:\n> On Tue, 4 Aug 2020 at 02:56, Eric Sunshine <sunshine@sunshineco.com> wrote:\n> >   git-wortkree.txt: link to man pages when citing other Git commands\n>\n> s/wortkree/worktree/ in the subject of the final, new patch.\n\nThanks. Perhaps Junio can tweak that when queuing, otherwise I'll fix\nit if I re-roll, otherwise it's minor enough that I won't worry about\nit if it makes it into permanent history.\n\n> I agree with all changes since v1, except ...\n>\n> > -By default, the repository \"config\" file is shared across all working\n> > +By default, the repository `config` file is shared across all working\n>\n> I don't think this is a filename (in which case it would have been\n> `.gitconfig?) but rather some sort of colloquial short form for\n> 'configuration file', thus '\"config\" file'. So I could see the double\n> quotes remain or being dropped, but I was surprised to see them\n> converted like this.\n\nI also thought at first that it was just shorthand for \"configuration\nfile\", but then I realized that it's talking about the `.git/config`\nfile, in which case it is an actual filename. So, I believe that\nquoting it with backticks is correct here.\n"},{"id":"402795","messageId":"CAN0heSpMFULN2O7-Z1=eDJaw5mZqAnR8rVg1V8JT5N0ER5MCxw@mail.gmail.com","threadId":"53971","inReplyTo":"CAPig+cS2jsmYkpf5+Kob2w09UKQgBvM5wjOV-bS-fVOK5KGhyA@mail.gmail.com","subject":"Re: [PATCH v2 0/5] git-worktree documentation cleanups","fromName":"Martin Ågren","fromEmail":"martin.agren@gmail.com","sentAt":"2020-08-04T05:23:01Z","receivedAt":"2020-08-04T05:23:16Z","isPatch":true,"sender":{"key":"martin.agren@gmail.com","avatar":null},"body":"On Tue, 4 Aug 2020 at 06:44, Eric Sunshine <sunshine@sunshineco.com> wrote:\n>\n> On Tue, Aug 4, 2020 at 12:29 AM Martin Ågren <martin.agren@gmail.com> wrote:\n> > On Tue, 4 Aug 2020 at 02:56, Eric Sunshine <sunshine@sunshineco.com> wrote:\n> >\n> > > -By default, the repository \"config\" file is shared across all working\n> > > +By default, the repository `config` file is shared across all working\n> >\n> > I don't think this is a filename (in which case it would have been\n> > `.gitconfig?) but rather some sort of colloquial short form for\n> > 'configuration file', thus '\"config\" file'. So I could see the double\n> > quotes remain or being dropped, but I was surprised to see them\n> > converted like this.\n>\n> I also thought at first that it was just shorthand for \"configuration\n> file\", but then I realized that it's talking about the `.git/config`\n> file, in which case it is an actual filename. So, I believe that\n> quoting it with backticks is correct here.\n\nYes, you're perfectly right, of course.\n\nThanks\nMartin\n"}]}