<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 19, 2020 at 10:04 AM Bill Meek <<a href="mailto:keemllib@gmail.com">keemllib@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2/14/20 12:57 PM, Hans Dingemans wrote:<br>
> I guess the -R is just a bad habit I now have to get rid of, thanks for the<br>
> tip & the script!<br>
<br>
I couldn't duplicate the double matches either. Even with -r. -R prints a<br>
warning message for mythtv/src, but still doesn't search src.<br>
<br>
Just another way:<br>
<br>
git grep excludes ignored files/directories (.gitignore) or un-added files.<br>
Note that after git add some_files, but before git commit, you must append<br>
--cached to search them.<br>
<br>
My favorite, but you don't have to create an alias:<br>
<br>
git config --global alias.g "grep --files-with-matches --open-files-in-pager=vi"<br>
<br>
Then: git g <search_string> finds files containing search_string and starts<br>
the editor positioned at that string. Great if there aren't many matches, so I<br>
sometimes use git grep <search_string> 1st. From vi[m], :n goes to the next<br>
file and n searches for the same string.<br>
<br>
You can use --open-files-in-pager=less rather than vi if you like. You can also<br>
append directories to limit searches, e.g. ... programs libs.<br>
<br>
-- <br>
Bill<br></blockquote><div>Thanks all for the "workarounds" on my
question on the "src" symbolic link, but nobody seems to know why it is
there.</div><div><div><br></div><div>Since I am the "get rid of the root
cause" kind of guy, I looked into it, and found it has to do with a few
lines in the ./configure script. The
script seems to be a copy of the FFmpeg configure script, but they
already differ, so I thought it might cause no harm to further adapt it; I removed a variable SRC_LINK that is never used, and the entire mechanism to fill the value of this variable. Side effect is the unnecessary src recursive directory is not created anymore; please see the patch attached.<br></div><div><br></div><div>As can be expected, myth still builds like before...<br></div><div><br></div><div>Hans.<br></div><div><br></div><div><br></div> </div></div></div>