read.gitGrep: Reads the output from git grep into a data frame.

Description Usage Arguments Value

Description

Output generated by git grep as shown below $git grep -n "regex pattern" > result.txt ror you can use the function provided here gitGrep

Usage

1
read.gitGrep(data, filename = NA, noText = FALSE)

Arguments

data

character vector of the result so $git grep ...

filename

the fully qualifed filename to read, provide this if you have saved the data in a text file

noText

if TRUE then do not include original text in returned data frame

Value

a data frame of the match data [,c("file", "line", "text")]


BigelowLab/gittools documentation built on May 5, 2019, 2:42 p.m.