Returns a data.frame including the commit hash, last author and datetime of all commits for all input files.
gitLog(list_of_files, last_rev_only = FALSE)
with_demoRepo({
gitLog("script/examp-txt.txt")
})
#> file last_commit last_author
#> 1 script/examp-txt.txt 95d1363acafc4d610863d73bcab7c72c8418e794 michaelm
#> 2 script/examp-txt.txt 27933ecbef5f0352dc785ef5ad87dbfa08ce4082 michaelm
#> 3 script/examp-txt.txt bbf461981e0ffdc663976f7e193ee07f752808b1 michaelm
#> last_datetime
#> 1 2025-09-16T12:31:57-04:00
#> 2 2025-09-16T12:31:57-04:00
#> 3 2025-09-16T12:31:56-04:00