# HG changeset patch # User Bernardo Farah # Date 1526928486 25200 # Node ID 11e5b14332fde2685125c8c95c7a5805c1e88a06 # Parent 18dbf8d02b4c418bdbdb7dd4dde869b3d62f5610 Fix gutentags_file_list_command behavior If we clear the project directory when we have a file list, ctags won't ignore the `-L` command and run on only the files provided. Addresses the issue I brought up here: https://github.com/ludovicchabant/vim-gutentags/issues/101 diff -r 18dbf8d02b4c -r 11e5b14332fd plat/unix/update_tags.sh --- a/plat/unix/update_tags.sh Sun Apr 08 13:27:54 2018 -0700 +++ b/plat/unix/update_tags.sh Mon May 21 11:48:06 2018 -0700 @@ -117,6 +117,8 @@ done > "${TAGS_FILE}.files" fi CTAGS_ARGS="${CTAGS_ARGS} -L ${TAGS_FILE}.files" + # Clear project root if we have a file list + PROJECT_ROOT="" fi echo "Running ctags on whole project" echo "$CTAGS_EXE -f \"$TAGS_FILE.temp\" $CTAGS_ARGS \"$PROJECT_ROOT\""