File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 22
33Initial CRAN release. See https://lorenzwalthert.github.io/precommit/ .
44
5+ # precommit v0.0.0.9049 (development)
6+
7+ - Roxygen hook cache only includes files that are part of the index and
8+ will hence be able to use the cache in cases it was previously invalidated
9+ without need (#171 ).
10+
511
612# precommit v0.0.0.9048
713
Original file line number Diff line number Diff line change 2929exlucded
3030fs
3131getOption
32+ getwd
3233gh
3334github
3435gitignore
@@ -46,19 +47,22 @@ knitr
4647lang
4748Lifecycle
4849lintr
50+ loadCache
4951lorenz
5052lorenzwalthert
5153macOS
5254magrittr
5355maxkb
5456md
5557miniconda
58+ mtime
5659navbar
5760netlify
5861nrow
5962oneliner
6063os
6164overscope
65+ packageVersion
6266params
6367parsable
6468pkgapi
8993roclets
9094ropenscilabs
9195roxygen
96+ roxygenise
9297roxygenize
9398RoxygenNote
9499Rprofile
99104Rscript
100105RStudio
101106rstudioapi
107+ saveCache
102108seealso
103109stderr
104110stdout
105111stopifnot
106112styler
113+ Sys
107114testthat
108115tidyverse
109116travis
115122VignetteBuilder
116123walthert
117124Walthert
125+ wd
118126withr
119127wordlist
120128writeLines
Original file line number Diff line number Diff line change @@ -38,7 +38,10 @@ wd <- list(getwd())
3838cache <- loadCache(key = wd , dirs = path_relative_cache )
3939
4040if (! is.null(cache )) {
41- candidates <- list.files(c(" R" , " man" ), full.names = TRUE )
41+ candidates <- intersect(
42+ list.files(c(" R" , " man" ), full.names = TRUE ),
43+ arguments $ files
44+ )
4245 all_files <- file.info(candidates )
4346 last_modified <- max(all_files $ mtime )
4447 if (last_modified > cache [[1 ]]) {
You can’t perform that action at this time.
0 commit comments