gitAdd: git add to stage the file

Description Usage Arguments Value Author(s) Examples

View source: R/git_add.R

Description

git add to stage the file

Usage

1
2
3
4
5
6
7
gitAdd(
  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 output from git add

Author(s)

Uses git2r package.

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")
gitAdd(si$project.path,file0) 

## End(Not run) 

gelfondjal/adapr documentation built on Feb. 2, 2020, 1:32 a.m.