I am on linux (mint mate 17.2), I wrote a simple shell script that call git grep -e
to help me to search a sub directory of a git repository, it works well.
When I changed the name of the sub directory, e.g from language
to 4-1.language
, then I modify the script accordingly.
Then the script won't give any search result, while it should, after try for several times, I guess it's a kind of cache.
I reboot my computer, then the new version of script works.
My question is:
Which part did the cache? Is that git or bash script or .. ?
And how could I make the script work without restart my computer?
@Update
I kind found the reason, it seems if I modify the sub directory name, without commit, then git grep -e
can't search neither of the old or new name, after I commit it, I can search the new name with expected result.