-
-
Notifications
You must be signed in to change notification settings - Fork 954
-
Im shifting some code from bash to python that makes use of git grep
Im wondering if there is a recommended way to do this - eg with a predicate
in traverse or using execute
Im particularly keen to replicate git grep's -I
functionality which filters out "binary" files from gits pov (ie .gitattributes)
Beta Was this translation helpful? Give feedback.
All reactions
GitPython
won't help much here as it merely acts as wrapper around git
to allow something like repo.git.grep(I=true)
, the result has to be parsed by hand. There is no other support for grep
like functionality or gitattributes.
Replies: 1 comment
-
GitPython
won't help much here as it merely acts as wrapper around git
to allow something like repo.git.grep(I=true)
, the result has to be parsed by hand. There is no other support for grep
like functionality or gitattributes.
Beta Was this translation helpful? Give feedback.