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