# HG changeset patch # User Alex Dzyoba # Date 1545165140 -10800 # Node ID def58b9d22c6fd1840b6c65edb890ecf1838d5a6 # Parent b9babbd3c0fab598b5f85a9c2cdc04be6568de50 Exclude cscope from default file list command With default setup gutentags generate file list for cscope using simple `find -type f` command in update_scopedb.sh. Subsequent invocations of this script causes unbounded growth of cscope database because cscope indexes itself every time. This change excludes cscope database file from default file list command for cscope database generation so it will work properly by default. Another option is to use custom file list command like `ag -l` that will generate files known to source control, that is without cscope database file. diff -r b9babbd3c0fa -r def58b9d22c6 plat/unix/update_scopedb.sh --- a/plat/unix/update_scopedb.sh Fri Dec 21 17:50:17 2018 +0900 +++ b/plat/unix/update_scopedb.sh Tue Dec 18 23:32:20 2018 +0300 @@ -70,7 +70,7 @@ done > "${DB_FILE}.files" fi else - find . -type f > "${DB_FILE}.files" + find . -type f ! -name ${DB_FILE} > "${DB_FILE}.files" fi CSCOPE_ARGS="${CSCOPE_ARGS} -i ${DB_FILE}.files"