Commit 212b39d173639f6f9aab137db52b888d5e1022ec

Christian Weisgerber 2020-02-24T11:57:12

Sync the description of the -r flag from "tree" to the other commands. Clarify that if the current directory is a work tree, tog will pick the repository associated with this work tree by default. ok stsp

diff --git a/tog/tog.1 b/tog/tog.1
index 60eb4e5..bda2731 100644
--- a/tog/tog.1
+++ b/tog/tog.1
@@ -165,6 +165,9 @@ if invoked in a work tree, or to the repository's HEAD reference.
 Use the repository at the specified path.
 If not specified, assume the repository is located at or above the current
 working directory.
+If this directory is a
+.Xr got 1
+work tree, use the repository path associated with this work tree.
 .El
 .It Cm diff Oo Fl r Ar repository-path Oc Ar object1 object2
 Display the differences between two objects in the repository.
@@ -215,6 +218,9 @@ are as follows:
 Use the repository at the specified path.
 If not specified, assume the repository is located at or above the current
 working directory.
+If this directory is a
+.Xr got 1
+work tree, use the repository path associated with this work tree.
 .El
 .It Cm blame Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Ar path
 Display line-by-line history of a file at the specified path.
@@ -274,6 +280,9 @@ automatically, provided the abbreviation is unique.
 Use the repository at the specified path.
 If not specified, assume the repository is located at or above the current
 working directory.
+If this directory is a
+.Xr got 1
+work tree, use the repository path associated with this work tree.
 .El
 .It Cm tree Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Op Ar path
 Display the repository tree.