universal-ctags / issues-we-will-not-fix-in-soon

This is the place for archving issues we will not (or cannot) fix in near future
0 stars 1 forks source link

Incremental update of huge tags db -- parse the VCS diff #5

Open amerlyq opened 4 years ago

amerlyq commented 4 years ago

Idea: parse changeset removed/added lines and modify tags database in-place accordingly by removing tags from - lines and adding tags from + lines. In theory it may significantly reduce time to update tagfile and will allow to automatically run ctags from pre-commit and post-checkout hooks without user workflow disruption.

Suggested command:

git diff-index -U0 $(git rev-list -1 --before=$(date +%s -r tags) master) | ctags --incremental ...

The question: is it feasible?

masatake commented 4 years ago

You may be interested in the discssion we had at https://github.com/universal-ctags/ctags/issues/423 .