git grep & bash script cache issue -


i on linux (mint mate 17.2), wrote simple shell script call git grep -e me search sub directory of git repository, works well.

when changed name of sub directory, e.g language 4-1.language, modify script accordingly.

then script won't give search result, while should, after try several times, guess it's kind of cache.

i reboot computer, new version of script works.

my question is:

which part did cache? git or bash script or .. ?

and how make script work without restart computer?

@update

i kind found reason, seems if modify sub directory name, without commit, git grep -e can't search neither of old or new name, after commit it, can search new name expected result.

are sure commit new directory before using script ?

it looks in tracked files

look specified patterns in tracked files in work tree

if rename subdirectory , did not add track git grep not find it.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -