commit 5b66608142185bf4240db42d8819f75303538281 from: Stefan Sperling date: Mon Feb 24 09:46:13 2020 UTC show how to log subdirectories in got.1 EXAMPLES ok naddy commit - 09b5bff804353d5930f67d05e453815493aeb225 commit + 5b66608142185bf4240db42d8819f75303538281 blob - bfd42f09a78d05ccbb7abf0aed72286753e1ca73 blob + 3dcc6009d2063864e985ca249bda77e9434e537f --- got/got.1 +++ got/got.1 @@ -1449,7 +1449,21 @@ the 3 most recent commits to the work tree's branch, o via the repository's HEAD reference, respectively: .Pp .Dl $ got log -p -l 3 +.Pp +In a work tree or a git repository directory, log the history of a subdirectory: +.Pp +.Dl $ got log sys/uvm +.Pp +While operating inside a work tree, paths are specified relative to the current +working directory, so this command will log the subdirectory +.Pa sys/uvm : .Pp +.Dl $ cd sys/uvm && got log '.' +.Pp +And this command has the same effect: +.Pp +.Dl $ cd sys/dev/usb && got log ../../uvm +.Pp Add new files and remove obsolete files in a work tree directory: .Pp .Dl $ got add sys/uvm/uvm_ubc.c