gitGrep: A wrapper around the the 'git grep -n <pattern>' command with...

Description Usage Arguments Value

Description

A wrapper around the the git grep -n <pattern> command with a find-and-replace option.

Usage

1
gitGrep(pattern, replacement = NA, path = ".", extra = "-nF")

Arguments

pattern

regular expression to search for. See glob2rx to convert a glob to regular expression

replacement

character, if not NA then replace occurance of pattern with this string

path

the path to the git snapshot

extra,

character, extra modifiers for git grep that must include at least'-n' The default is "-nF" which means the pattern fixed (not regex), specify extra without "F" if you want to pass a regular expression.

Value

a data frame as returned by read.gitGrep


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