cscope.vim
cscope.vim copied to clipboard
Logical Bug In Updating DB
let id = s:dbs[a:dir]['id']
let cscope_files = s:cscope_vim_dir."/".id."_inc.files"
let cscope_db = s:cscope_vim_dir.'/'.id.'_inc.db'
if ! filereadable(cscope_files) || a:init
let cscope_files = s:cscope_vim_dir."/".id.".files"
let cscope_db = s:cscope_vim_dir.'/'.id.'.db'
if ! filereadable(cscope_files)
let files = <SID>ListFiles(a:dir)
call writefile(files, cscope_files)
endif
endif
So if x.files exist, the update will based on it, however, in some cases the there will be changes in file names and number of files, and path of files... so, obviously the x.files needs to be updated also everytime the databse is being updated to reliably update database.