TAGS CTAGS GTAGS ID etc. can be generated (and distclean-ed) by the existing Makefiles, they should be ignored by git.
.gitignore TAGS and emacs lock files #8565
pull roques wants to merge 2 commits into bitcoin:master from roques:gitignore changing 1 files +15 −0-
roques commented at 1:56 PM on August 23, 2016: contributor
-
.gitignore TAGS etc. d99cd734e2
-
.gitignore emacs lock files 6599b93119
-
btcdrak commented at 1:59 PM on August 23, 2016: contributor
These should be added to your local global ignore, not the repository. See https://help.github.com/articles/ignoring-files/#create-a-global-gitignore
-
laanwj commented at 2:01 PM on August 23, 2016: member
Yes, see for example #8197. Our policy for gitignore files project-wide is that we ignore files produced by the build, not by external tools or IDEs that one may use. Git has more specific options for that to avoid having to do that for every project.
-
roques commented at 6:54 PM on August 23, 2016: contributor
Not .gitignoring emacs specialities in a project which doesn't depend on emacs makes sense to me. However, vi's
.*.swpfiles and backups currently are in.gitignore. Removing them for consistency is probably not worth it. TheTAGS ETAGSetc. files can be created by the project'sMakefileas it is now, otherwise I wouldn't have bothered in the first place. However, TAGS-support seems to be automatically provided by automake, unlike lcov-support which looked similar and whose artifacts are in.gitignore, but was explicitly added toconfigure.ac.Thus, I'll rescind this pull request. Should you change your mind, the changes are trivial to recreate.
- roques closed this on Aug 23, 2016
-
sipa commented at 10:31 AM on August 25, 2016: member
What tools create TAGS files?
-
roques commented at 6:37 PM on August 26, 2016: contributor
TAGS(for emacs) is created byetags(1)andtags(for vi) byctags(1). M-. can be used to jump to a symbol's definition in emacs and vi will jump to the tag of the keyword the cursor is on with the CTRL-] command. The corresponding make targets aretagsandctags. - MarcoFalke locked this on Sep 8, 2021