Skip to contents

Determine the time a file in a Git repository was last modified.

Usage

git_file_mod_time(path, repo = ".")

Arguments

path

Path to a file, relative to the Git repository root.

repo

Path to a Git repository.

Value

A datetime.

Details

Note that only committed changes to the file are regarded. The modification is returned in UTC.

See also

Other Git functions: git_remote_tree_url()

Examples

if (FALSE) { # \dontrun{
pal::git_file_mod_time(path = "README.md")} # }