Commit dc990cbf2d39c406ff23bc36e6cbb822f747ee42

Stefan Sperling 2020-02-22T20:42:55

document semantics of got log and tog log path arguments

diff --git a/got/got.1 b/got/got.1
index 709b284..bfd42f0 100644
--- a/got/got.1
+++ b/got/got.1
@@ -330,6 +330,11 @@ Display history of a repository.
 If a
 .Ar path
 is specified, show only commits which modified this path.
+If invoked in a work tree, the
+.Ar path
+is interpreted relative to the current working directory,
+and the work tree's path prefix is implicitly prepended.
+Otherwise, the path is interpreted relative to the repository root.
 .Pp
 The options for
 .Cm got log
diff --git a/tog/tog.1 b/tog/tog.1
index 0dd6540..e27af0c 100644
--- a/tog/tog.1
+++ b/tog/tog.1
@@ -81,6 +81,11 @@ Display history of a repository.
 If a
 .Ar path
 is specified, show only commits which modified this path.
+If invoked in a work tree, the
+.Ar path
+is interpreted relative to the current working directory,
+and the work tree's path prefix is implicitly prepended.
+Otherwise, the path is interpreted relative to the repository root.
 .Pp
 This command is also executed if no explicit command is specified.
 .Pp