Checks the log summary and returns entries where there exists a newer revision of its file or origin.

logPending(directory = getwd())

Arguments

directory

any directory at or below that containing the log

Details

One always wants to review the latest revision of a file, given the latest revision of its origin. Typically a file is its own origin (e.g. a directly-authored script), in which case it suffices to verify that there is no newer revision. For derived objects, the latest revision of the origin is informative, and is independent of the file revision. Further review is indicated if either the file, its origin, or both have been revised. If a file has changed but not its origin, an explanation is needed. If a file is the same after a change to its origin, confirmation is needed. It is not unusual for both a file and its origin to change.

Author

Tim Bergsma

Examples

with_demoRepo({
  logPending()
})
#>                     file                 origin revf headf revo heado reviewer
#> 5 script/data-assembly.R script/data-assembly.R    1     5    1     5 michaelm
#> 4   script/examp-txt.txt   script/examp-txt.txt    0     1    0     1   anyone
#> 6  script/pk/load-spec.R  script/pk/load-spec.R    1     4    1     4 michaelm
#>                                    time
#> 5 2024-11-14 20:31:17.2672724723816 GMT
#> 4 2024-11-14 20:31:17.1303222179413 GMT
#> 6 2024-11-14 20:31:17.3361065387726 GMT