Commit Diff


commit - ea025d1dbc11c33fec290591f35673b896edd822
commit + dc990cbf2d39c406ff23bc36e6cbb822f747ee42
blob - 709b28475adcddd7a3952eb8c6d2cfcc50a08386
blob + bfd42f09a78d05ccbb7abf0aed72286753e1ca73
--- got/got.1
+++ 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
blob - 0dd65401b0dc391a3212722256b92a0e5afc702a
blob + e27af0c30eb30142cb8e3f9fce4f2f60f16932cc
--- tog/tog.1
+++ 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