git-gsub icon indicating copy to clipboard operation
git-gsub copied to clipboard

A Git subcommand to do gsub in a repository

Results 3 git-gsub issues
Sort by recently updated
recently updated
newest added

``` $ git gsub "([[:^alpha:]]" "OK" README.md panic: regexp: Compile(`([[:^alpha:]]`): error parsing regexp: missing closing ): `([[:^alpha:]]` goroutine 1 [running]: regexp.MustCompile({0x16b64ef10, 0xd}) /opt/homebrew/Cellar/go/1.20.2/libexec/src/regexp/regexp.go:319 +0xac main.addSub(0x1400000e048, {0x16b64ef10?, 0x3?}, {0x16b64ef1e, 0x2}, 0x1048d46e0)...

git-gsub is using regexp package for replacing string, which depends on re2 and re2 doesn't support submatch. Replacing with submatch is undocumented(yet partially test) feature, but I hope this to...