parent
76f871d52b
commit
a3a14f168e
@ -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…
Reference in new issue