git_file_mod_time: Get Git file modification time

git_file_mod_timeR Documentation

Get Git file modification time

Description

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.

Details

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

Value

A datetime.

See Also

Other Git functions: git_remote_tree_url()

Examples

## Not run: 
pal::git_file_mod_time(path = "README.md")
## End(Not run)

salim-b/pal documentation built on Feb. 28, 2025, 6:51 p.m.