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 ?
look specified patterns in tracked files in work tree
if rename subdirectory , did not add track git grep not find it.
Comments
Post a Comment