get_info: Get the first and last modification time for a specific file,...

Description Usage Arguments Value Examples

View source: R/get_info_files.R

Description

Get the first and last modification time for a specific file, based on git2r::blame().

Usage

1
get_info(path, repo = ".")

Arguments

path

path to the file

repo

repo of the git project

Value

A list with information of the selected file:

Examples

1
2
repo <- fake_repo()
get_info(list.files(repo)[1], repo = repo)

gitdown documentation built on Jan. 21, 2022, 5:07 p.m.