ctags (and update xcode ignores)

pull/2/head
Alpha Chen 2 years ago
parent 76f871d52b
commit a3a14f168e
No known key found for this signature in database

@ -5,8 +5,9 @@
# scratch
scratch.*
# vim
doc/tags
# ctags
.ctags.d
tags
# direnv
*.envrc
@ -19,17 +20,4 @@ doc/tags
.DS_Store
# Xcode
build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
*.xcworkspace
!default.xcworkspace
xcuserdata
profile
*.moved-aside

@ -1,8 +1,9 @@
#!/bin/sh
# Overrides for --exclude and --languages can be put into .ctags.d/*.ctags
set -e
PATH="/usr/local/bin:$PATH"
dir="`git rev-parse --git-dir`"
trap 'rm -f "$dir/$$.tags"' EXIT
git ls-files | \
ctags --tag-relative -L - -f"$dir/$$.tags" # --languages=-javascript,sql
mv "$dir/$$.tags" "$dir/tags"
trap 'rm -f "$$.tags"' EXIT
git ls-files | ctags --tag-relative -L - -f"$$.tags"
mv "$$.tags" "tags"

Loading…
Cancel
Save