get_last_modif {gitdown} | R Documentation |
Get the first and last modification time of files of a directory
Description
Get the first and last modification time of files of a directory
Usage
get_last_modif(repo = ".", path = "R", recursive = TRUE, untracked = TRUE)
Arguments
repo |
git repository |
path |
Default to R folder. Use "" for the complete directory |
recursive |
Logical. Should the listing recurse into directories? |
untracked |
Logical. Should the not tracked files be included? |
Value
A list of files with information of each file:
file: file name
in_repository: Logical. Whether the file has already been commit once in the git repository
first_modif: time of first modification. Commit time if in the git repository, system date of creation otherwise.
last_modif: time of last modification. Commit time if in the git repository, system date of last modification otherwise.
Examples
repo <- fake_repo()
# Complete repository
get_last_modif(repo = repo, path = "")
repo <- fake_repo(as.package = TRUE)
# Complete repository
get_last_modif(repo = repo, path = "")
[Package gitdown version 0.1.6 Index]