get_info {gitdown}R Documentation

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

Description

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

Usage

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

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

[Package gitdown version 0.1.6 Index]