git-grep

Git Grep Multiple Words on Multiple Lines

跟風遠走 提交于 2021-01-02 06:35:36
问题 I want to git grep the files which has two pre-specified words (if both exist, i.e. AND ing), assume these two words are word1 and word2 I tried git grep -e 'word1' --and -e 'word2' And also I tried git grep 'word1'.*'word2' but both retrieve the results only if word1 and word2 are on the same line, and the second one does not retrieve if word2 comes first in the line, which is something that I don't want. I want to retrieve the files, even if the two words are not on same line (I am not sure

Git Grep color options explained and/or compared

99封情书 提交于 2019-12-12 18:35:54
问题 I'm trying to custom color my Git. After reading through the documentation, I've found my options I wanted to set. Everything was working fine except the Grep. I've realised, I haven't really used it in the past. I wanted to set colors for it with the same palette, but I could not test some of them... I have no idea what matchContext and match refer to and how they're different than matchSelected and selected . matchSelected sets a color for the actual text I searched for, while as selected

Hoogle Git repository

浪子不回头ぞ 提交于 2019-12-12 18:08:22
问题 Is there a way to use type signature searches on not just the current working set, but the entire history of a project? The purpose would be to find and possibly recycle Haskell functions that were previously written and tested, but removed due to lack of use/need. 来源: https://stackoverflow.com/questions/45970886/hoogle-git-repository