gitInfo: Retrieves the information from git about a file

Description Usage Arguments Value Examples

Description

Retrieves the information from git about a file

Usage

1
2
gitInfo(gitdir, filename, branch = NULL, git_args = character(),
  git_binary = NULL)

Arguments

gitdir

string with git directory

filename

string of file to query

branch

git branch

git_args

string argument for git

git_binary

location of git executable

Value

git log for filename

Examples

1
2
3
4
5
6
## Not run: 
si <- pullSourceInfo("adaprHome")
file0 <- file.path(si$project.path,project.directory.tree$analysis,"read_data.R")
gitInfo(si$project.path,file0) 

## End(Not run) 

adapr documentation built on May 1, 2019, 7:05 p.m.