Learn R Programming

adapr (version 1.0.1)

git.info: Retrieves the information from git about a file

Description

Retrieves the information from git about a file

Usage

git.info(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

Run this code
## Not run: 
# si <- pull_source_info("adaprHome")
# file0 <- file.path(si$project.path,project.directory.tree$analysis,"read_data.R")
# git.info(si$project.path,file0) 
# ## End(Not run) 


Run the code above in your browser using DataLab