3 Nov
2013
3 Nov
'13
9:37 p.m.
On 11/03/2013 08:40 PM, Stephen Kelly wrote:
On 11/03/2013 08:01 PM, Bjørn Roald wrote: snip...
I tried the git-grep-submodule wrapper command from one of the suggested patches in the above cited discussion, and I combined it with a simple alias in my ~/.gitconfig file.
[alias] rgrep = "!f() { git grep $*; git grep-submodule $*;}; f"
It is good that the result from each submodule is not paged individually (git grep-submodule handles that). However, the above results in two result sets paged individually. I tried to find a way to fix that but it seems git_pager can't be used in an alias.
GIT_PAGER=cat git rgrep MODULAR works for me. -- Bjørn