Is it possible that Git searches for the contents of text files in the bare repository for a specific string?
I am creating a WebGit.NET search function to allow the search for the current state of all repositories for text.
Something like that?
git grep -e textstring HEAD
or
git ls-files|xargs -I% -n 1 git cat-file -p HEAD:%|grep textstring
It looks like you are looking for git grep . When searching in an open repository, you must specify where to look:
git grep
git grep foobar HEAD
Use pick ax to see where text has been added or removed in the story.
git log --all -S'your text'
Source: https://habr.com/ru/post/1380253/More articles:Chart APIs and user actions - graphProviding multiple selection options in an Android / iOS browser - androidJVM Out of Memory inspires to give a large heap space - javaAdd FormItem dynamically to DynamicForm with SmartGWT - smartgwtC # using the same variable in a subclass and base class - c #How can we do "check for new versions of the page"? - jqueryGood library for coding video in a dynamic language? - pythonIs it possible to index all fields in this mysql query? - performanceApplication does not respond after resuming - java.cod data section to great when launching a Blackberry web browser project - jquery-mobileAll Articles