Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (9 sloc) 291 Bytes
#!/bin/sh
set -e
git_dir=$(git rev-parse --git-dir)
lock="$git_dir/tags.lock"
file="$git_dir/tags.$$"
mkdir "$lock" 2>/dev/null || exit 0
trap 'rmdir "$lock"; rm -f "$file"' EXIT INT TERM
git ls-files -oc --exclude-standard | ctags --tag-relative -L- -f"$file"
mv "$file" "${file%.$$}"
Something went wrong with that request. Please try again.